/* ============================================================================
   IICONIX — Components
   ========================================================================== */

/* ---------------------------------------------------------------- Loader -- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.04em;
  color: var(--text-strong);
  position: relative;
}
.loader__mark span { opacity: 0; animation: loaderIn 0.5s var(--ease) forwards; }
.loader__bar {
  margin-top: 22px;
  height: 2px;
  width: 180px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.loader__bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--grad-brand);
  border-radius: inherit;
  animation: loaderBar 1.4s var(--ease) forwards;
}
@keyframes loaderIn { to { opacity: 1; } }
@keyframes loaderBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
}

/* -------------------------------------------------------------- Cursor --- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 900;
  mix-blend-mode: difference;
  translate: -50% -50%;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.6);
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease),
              background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.cursor-ring.is-hover { width: 54px; height: 54px; background: rgba(52,227,227,0.12); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --------------------------------------------------------------- Navbar -- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 11, 22, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__glyph {
  width: 26px; height: 26px;
  display: inline-block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text-strong); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
}
.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  position: relative;
}
.nav__toggle span,
.nav__toggle::before, .nav__toggle::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle span { top: 50%; translate: 0 -50%; }
.nav__toggle::before { top: 15px; }
.nav__toggle::after { bottom: 15px; }
.nav__toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.nav__toggle[aria-expanded="true"] span { opacity: 0; }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 490;
  background: var(--bg-2);
  backdrop-filter: blur(20px);
  padding: 32px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a {
  padding: 16px 8px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.is-active { color: var(--cyan); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* --------------------------------------------------------------- Buttons - */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--text-strong);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur) var(--ease),
              background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); border-color: var(--border-accent); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }

.btn--primary {
  background: var(--grad-brand);
  border-color: transparent;
  color: #04101f;
  font-weight: 600;
}
.btn--primary:hover { box-shadow: var(--glow-azure); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn-arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Text link with underline draw */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-weight: 500;
  font-size: 0.94rem;
}
.link-arrow .ico { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------------------------------------------------------------- Cards -- */
.card {
  position: relative;
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
/* Cursor-reactive spotlight via CSS vars set in JS */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%),
              rgba(61,139,255,0.14), transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }
.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(61,139,255,0.1);
  border: 1px solid var(--border-accent);
  color: var(--cyan);
  margin-bottom: 20px;
}
.card__icon .ico { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
}
.card__foot { margin-top: 22px; }

/* Tag / badge */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.tag--accent { color: var(--cyan); border-color: var(--border-accent); }

/* Status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  color: var(--muted);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.status--available { color: #6ee7a8; border-color: rgba(110,231,168,0.3); }
.status--available::before { background: #6ee7a8; box-shadow: 0 0 8px #6ee7a8; }
.status--dev::before, .status--preview::before { background: var(--gold); }
.status--dev, .status--preview { color: var(--gold); border-color: rgba(203,162,78,0.3); }
.status--custom::before { background: var(--violet); }
.status--custom { color: var(--violet); border-color: rgba(123,107,255,0.3); }

/* Grid helpers */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__canvas canvas { width: 100% !important; height: 100% !important; }
.hero__fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(70% 60% at 70% 40%, transparent 0%, var(--bg) 78%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { margin: 22px 0 24px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__trust {
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}
.hero__trust span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__trust span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  translate: -50% 0;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ------------------------------------------------------------- Marquee --- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 56px;
  white-space: nowrap;
}
.marquee__item::after { content: "◆"; color: var(--azure); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* --------------------------------------------------------- Split intro --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

/* --------------------------------------------------- Process timeline --- */
.process { position: relative; }
.process__line {
  position: absolute;
  left: 0; right: 0; top: 34px;
  height: 2px;
  background: var(--border);
}
.process__line span {
  display: block; height: 100%; width: 0;
  background: var(--grad-brand);
  border-radius: var(--r-pill);
  transition: width 0.1s linear;
}
.process__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.process__step { position: relative; padding-top: 70px; }
.process__num {
  position: absolute; top: 0; left: 0;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--cyan);
}
.process__step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.process__step p { font-size: 0.92rem; }

/* ------------------------------------------------ Dashboard mock-up ----- */
.mock {
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); display: block; }
.mock__url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted-2);
  background: var(--surface);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.mock__tabs {
  display: flex; gap: 4px;
  padding: 14px 18px 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.mock__tab {
  padding: 9px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  border: 0; background: transparent;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.mock__tab.is-active { color: var(--text-strong); border-bottom-color: var(--cyan); }
.mock__body { padding: 22px; display: grid; gap: 18px; }
.mock__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }
.kpi__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.kpi__val { font-family: var(--font-display); font-size: 1.7rem; color: var(--text-strong); margin-top: 8px; }
.kpi__delta { font-size: 0.76rem; margin-top: 4px; }
.kpi__delta.up { color: #6ee7a8; }
.kpi__delta.down { color: #f28b8b; }
.mock__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.mock__panel { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px; }
.mock__panel h4 { font-family: var(--font-display); font-size: 0.95rem; color: var(--text); margin-bottom: 14px; }
.mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.mock__chart i {
  flex: 1; display: block;
  background: var(--grad-brand);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
  transition: height 0.6s var(--ease);
}
.ai-panel { border-color: var(--border-accent); background: linear-gradient(180deg, rgba(61,139,255,0.06), var(--bg-2)); }
.ai-panel .ai-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }
.ai-panel p { font-size: 0.86rem; color: var(--text); margin-top: 10px; line-height: 1.5; }
.mock__table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.mock__table th { text-align: left; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); padding: 8px 6px; border-bottom: 1px solid var(--border); }
.mock__table td { padding: 10px 6px; border-bottom: 1px solid var(--border); color: var(--muted); }
.mock__table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------- Metrics ------- */
.metric { text-align: center; padding: 28px 18px; }
.metric__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--text-strong); }
.metric__num.text-gradient { display: inline-block; }
.metric__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-top: 8px; }
.metric__desc { font-size: 0.86rem; margin-top: 10px; }

/* ------------------------------------------------------- Tech grid ----- */
.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--muted);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tech-chip:hover { transform: translateY(-3px); border-color: var(--border-accent); color: var(--text); }
.tech-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--azure); }

/* ------------------------------------------------------ CTA block ------ */
.cta {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(61,139,255,0.16), transparent 60%),
    var(--surface);
  padding: clamp(48px, 8vw, 90px) var(--gutter);
  text-align: center;
  overflow: hidden;
}
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta p { max-width: 52ch; margin: 18px auto 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.cta__glow {
  position: absolute; inset: auto 0 -50% 0; height: 100%;
  background: radial-gradient(50% 100% at 50% 100%, rgba(52,227,227,0.16), transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------- Footer ------ */
.footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(56px, 8vw, 90px);
  padding-bottom: 40px;
  margin-top: var(--section-y);
  background: var(--bg-2);
}
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand .brand { font-size: 1.5rem; }
.footer__brand p { margin-top: 18px; max-width: 34ch; font-size: 0.92rem; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}
.footer__col a { display: block; padding: 6px 0; color: var(--muted); font-size: 0.92rem; transition: color var(--dur-fast) var(--ease); }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border);
}
.footer__bottom p { font-size: 0.84rem; color: var(--muted-2); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--muted);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer__social a:hover { border-color: var(--border-accent); color: var(--cyan); }

/* --------------------------------------------------- Back to top ------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text);
  z-index: 400;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--border-accent); color: var(--cyan); }

/* ----------------------------------------------- Scroll progress ------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--grad-brand);
  z-index: 600;
}

/* --------------------------------------------------------- Forms ------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  font-size: 0.96rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--faint); }
.field__input:focus { outline: none; border-color: var(--border-accent); box-shadow: 0 0 0 3px rgba(61,139,255,0.14); }
.field__textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field__select { 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='%239aa4bd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field--error .field__input { border-color: #e06666; }
.field__err { color: #f0a0a0; font-size: 0.82rem; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.field--consent { flex-direction: row; align-items: flex-start; gap: 12px; }
.field__checkbox { width: 20px; height: 20px; accent-color: var(--azure); margin-top: 2px; flex-shrink: 0; }
.field--consent label { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.form__note { font-size: 0.82rem; color: var(--muted-2); }
.form__note a { color: var(--cyan); }

.alert {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-size: 0.92rem;
}
.alert--success { background: rgba(110,231,168,0.1); border: 1px solid rgba(110,231,168,0.3); color: #b9f2d2; }
.alert--error { background: rgba(224,102,102,0.1); border: 1px solid rgba(224,102,102,0.3); color: #f2b9b9; }

/* -------------------------------------------------- Page hero (inner) -- */
.page-hero { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px)); position: relative; }
.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 60ch; margin-top: 22px; }

/* ------------------------------------------------------- Accordion ----- */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__head {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px;
  background: transparent; border: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--text-strong);
}
.accordion__head .plus { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.accordion__head .plus::before, .accordion__head .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--cyan);
  transition: transform var(--dur) var(--ease);
}
.accordion__head .plus::before { width: 16px; height: 1.5px; translate: -50% -50%; }
.accordion__head .plus::after { width: 1.5px; height: 16px; translate: -50% -50%; }
.accordion__item.is-open .plus::after { transform: scaleY(0); }
.accordion__panel { overflow: hidden; height: 0; transition: height var(--dur) var(--ease); }
.accordion__inner { padding: 0 4px 30px; }

/* --------------------------------------------------------- Filters ----- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.filter-btn:hover { color: var(--text); }
.filter-btn.is-active { color: #04101f; background: var(--grad-brand); border-color: transparent; font-weight: 600; }

.project-item { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.project-item.is-hidden { display: none; }

/* -------------------------------------------------- Reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
