/* ==========================================================================
   INNOVANATEC — Components
   ========================================================================== */

/* ==========================================================================
   1. BUTTONS
   ========================================================================== */
.btn {
  --btn-shift-x: 0px;
  --btn-shift-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 52px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  transform: translate3d(var(--btn-shift-x), var(--btn-shift-y), 0);
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out);
}

.btn__icon {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform var(--t-base) var(--ease-out);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

/* primary */
.btn--primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35), transparent 70%);
  transform: translateX(-120%);
  transition: transform var(--t-slow) var(--ease-out);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 22px 60px -18px rgba(241, 89, 42, 0.8);
}

.btn--primary:hover::after {
  transform: translateX(120%);
}

/* ghost / outline */
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ink-600);
  color: var(--text-hi);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--brand-orange);
  background: rgba(241, 89, 42, 0.08);
  color: var(--text-hi);
}

/* quiet text link with arrow */
.btn--link {
  min-height: 0;
  padding: 0;
  color: var(--brand-orange-300);
}

.btn--link:hover {
  color: var(--brand-orange);
}

.btn--sm {
  min-height: 44px;
  padding: 0 var(--sp-5);
  font-size: var(--fs-xs);
}

.btn--block {
  width: 100%;
}

@media (max-width: 479px) {
  .btn {
    width: 100%;
  }
}

/* ==========================================================================
   2. HEADER / NAV
   ========================================================================== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    height var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    backdrop-filter var(--t-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* scrolled state (added by main.js) */
.header.is-stuck {
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--ink-700);
  --header-h: 64px;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-right: auto;
}

.logo__mark {
  width: 38px;
  height: 38px;
  transition: transform var(--t-slow) var(--ease-spring);
}

.logo:hover .logo__mark {
  transform: rotate(90deg);
}

.logo__word {
  height: 17px;
  width: auto;
}

@media (max-width: 400px) {
  .logo__word {
    height: 14px;
  }
}

/* desktop nav */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--text-mid);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text-hi);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--brand-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.nav__link:hover::after,
.nav__item.is-open > .nav__link::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"] {
  color: var(--text-hi);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__chev {
  width: 12px;
  height: 12px;
  transition: transform var(--t-base) var(--ease-out);
}

.nav__item.is-open .nav__chev {
  transform: rotate(180deg);
}

/* dropdown */
.nav__item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(560px, calc(100vw - 48px));
  padding: var(--sp-4);
  background: rgba(19, 22, 29, 0.97);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition:
    opacity var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out),
    visibility var(--t-base);
}

.nav__item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text-mid);
  font-size: var(--fs-sm);
  transition: background-color var(--t-fast) var(--ease-out);
}

.dropdown__link:hover {
  background: var(--ink-750);
  color: var(--text-hi);
}

.dropdown__link svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand-orange);
}

.dropdown__all {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-700);
}

/* header phone + cta */
.header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.header__phone svg {
  width: 15px;
  height: 15px;
  color: var(--brand-orange);
}

.header__phone:hover {
  color: var(--text-hi);
}

.header__cta {
  display: none;
}

/* burger */
.burger {
  --burger-size: 44px;
  position: relative;
  width: var(--burger-size);
  height: var(--burger-size);
  flex: none;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}

.burger__box {
  position: relative;
  width: 18px;
  height: 12px;
}

.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-hi);
  border-radius: 2px;
  transition:
    transform var(--t-base) var(--ease-out),
    opacity var(--t-fast) linear,
    top var(--t-base) var(--ease-out);
}

.burger__box span:nth-child(1) {
  top: 0;
}
.burger__box span:nth-child(2) {
  top: 5px;
}
.burger__box span:nth-child(3) {
  top: 10px;
}

.burger[aria-expanded="true"] .burger__box span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] .burger__box span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] .burger__box span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }
  .header__phone,
  .header__cta {
    display: inline-flex;
  }
  .burger {
    display: none;
  }
}

/* ==========================================================================
   3. MOBILE MENU
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + var(--sp-5)) var(--gutter) var(--sp-6);
  background: rgba(10, 12, 16, 0.98);
  backdrop-filter: blur(18px);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity var(--t-base) var(--ease-out),
    visibility var(--t-base);
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu__list {
  display: grid;
  gap: 2px;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--ink-800);
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(14px);
}

.mobile-menu.is-open .mobile-menu__link {
  animation: menuIn 460ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 60ms);
}

.mobile-menu__link svg {
  width: 18px;
  height: 18px;
  color: var(--brand-orange);
  flex: none;
}

.mobile-menu__sub {
  display: grid;
  gap: 2px;
  padding: var(--sp-2) 0 var(--sp-4) var(--sp-4);
  border-left: 1px solid var(--ink-700);
  margin-left: 2px;
}

.mobile-menu__sublink {
  padding: 9px 0;
  color: var(--text-mid);
  font-size: var(--fs-sm);
}

.mobile-menu__foot {
  margin-top: auto;
  padding-top: var(--sp-6);
  display: grid;
  gap: var(--sp-3);
}

@keyframes menuIn {
  to {
    opacity: 1;
    transform: none;
  }
}

body.is-locked {
  overflow: hidden;
}

/* ==========================================================================
   4. CARDS
   ========================================================================== */
.card {
  --spot-x: 50%;
  --spot-y: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out);
}

/* spotlight that follows the pointer (set by effects.js) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    340px circle at var(--spot-x) var(--spot-y),
    rgba(241, 89, 42, 0.14),
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    border-color: var(--ink-600);
    box-shadow: var(--shadow-lift);
  }
  .card:hover::before {
    opacity: 1;
  }
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-2);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--ink-750), var(--ink-800));
  border: 1px solid var(--ink-700);
  color: var(--brand-orange);
  transition:
    color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-spring);
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .card__icon {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(241, 89, 42, 0.4);
}

.card__title {
  font-size: var(--fs-h4);
  font-weight: 600;
}

.card__lede {
  color: var(--text-hi);
  font-weight: 500;
  font-size: var(--fs-sm);
}

.card__text {
  font-size: var(--fs-sm);
}

.card__more {
  margin-top: auto;
  padding-top: var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-orange-300);
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card__more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-base) var(--ease-out);
}

.card:hover .card__more svg {
  transform: translateX(4px);
}

/* whole-card link */
.card--link .card__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* index number in the corner */
.card__num {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-600);
  transition: color var(--t-base) var(--ease-out);
}

.card:hover .card__num {
  color: var(--brand-orange);
}

/* ---------- Value card (why us) ---------- */
.value {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-700);
}

.value__icon {
  width: 40px;
  height: 40px;
  color: var(--brand-blue-300);
}

.value h3 {
  font-size: var(--fs-h4);
}

.value p {
  font-size: var(--fs-sm);
}

/* ==========================================================================
   5. STATS / COUNTERS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-4);
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stat {
  position: relative;
  padding-left: var(--sp-4);
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.stat__num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* hero inline stats */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-700);
}

/* ==========================================================================
   6. MARQUEE (partners)
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: clamp(40px, 7vw, 88px);
  animation: marquee 34s linear infinite;
}

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

.marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-low);
  transition: color var(--t-base) var(--ease-out);
  white-space: nowrap;
}

.marquee__item:hover {
  color: var(--text-hi);
}

.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink-600);
  transform: rotate(45deg);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.trust-note {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
  text-align: center;
}

/* ==========================================================================
   7. PROCESS TIMELINE
   ========================================================================== */
.process {
  position: relative;
  display: grid;
  gap: var(--sp-6);
}

.process::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--ink-700);
}

.process__fill {
  position: absolute;
  left: 19px;
  top: 12px;
  width: 2px;
  height: 0;
  background: var(--grad-primary);
  transition: height 120ms linear;
}

.process__step {
  position: relative;
  padding-left: 60px;
}

.process__dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--ink-900);
}

.process__dot::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--ink-600);
  transform: rotate(45deg);
  transition:
    background-color var(--t-base) var(--ease-out),
    transform var(--t-slow) var(--ease-spring);
}

.process__step.is-active .process__dot::before {
  background: var(--brand-orange);
  transform: rotate(135deg) scale(1.15);
}

.process__k {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--brand-orange);
  letter-spacing: 0.1em;
}

.process__step h3 {
  margin: 6px 0 8px;
  font-size: var(--fs-h4);
}

.process__step p {
  font-size: var(--fs-sm);
  max-width: 52ch;
}

@media (min-width: 1024px) {
  .process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp-5);
  }
  .process::before,
  .process__fill {
    left: 0;
    right: 0;
    top: 11px;
    bottom: auto;
    width: auto;
    height: 2px;
  }
  .process__fill {
    width: 0;
    height: 2px;
    transition: width 120ms linear;
  }
  .process__step {
    padding: 46px var(--sp-4) 0 0;
  }
  .process__dot {
    left: 0;
    top: 0;
  }
}

/* ==========================================================================
   8. PROJECT / CASE TILES
   ========================================================================== */
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
  padding: var(--sp-5);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-850);
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out);
}

.tile:hover {
  transform: translateY(-5px);
  border-color: var(--ink-600);
}

/* generated pattern stands in for photography until real photos arrive */
.tile__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.85;
  transition: transform var(--t-slow) var(--ease-out);
}

.tile:hover .tile__art {
  transform: scale(1.06);
}

.tile__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.96) 8%, rgba(10, 12, 16, 0.5) 55%, transparent);
}

.tile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-3);
}

.chip {
  padding: 5px 11px;
  border: 1px solid var(--ink-600);
  border-radius: var(--r-pill);
  background: rgba(10, 12, 16, 0.6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
  backdrop-filter: blur(4px);
}

.chip--accent {
  border-color: rgba(241, 89, 42, 0.45);
  color: var(--brand-orange-300);
}

.tile h3 {
  font-size: var(--fs-h4);
}

.tile p {
  margin-top: 8px;
  font-size: var(--fs-sm);
}

/* placeholder banner for sections awaiting real client content */
.notice {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
  border: 1px dashed var(--ink-600);
  border-radius: var(--r-md);
  background: rgba(14, 118, 188, 0.06);
  font-size: var(--fs-sm);
}

.notice svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand-blue-300);
  margin-top: 2px;
}

/* ==========================================================================
   9. CTA BAND
   ========================================================================== */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--ink-700);
  padding: clamp(32px, 5vw, 64px);
  background: var(--ink-850);
}

.cta__glow {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: var(--grad-mesh);
  animation: drift 22s var(--ease-in-out) infinite alternate;
}

@keyframes drift {
  to {
    transform: translate3d(6%, -4%, 0) scale(1.12);
  }
}

.cta__inner {
  display: grid;
  gap: var(--sp-6);
}

.cta h2 {
  max-width: 24ch;
}

.cta p {
  max-width: 48ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-body-lg);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.cta__contacts {
  display: grid;
  gap: var(--sp-4);
  align-content: center;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: rgba(10, 12, 16, 0.5);
  transition:
    border-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.contact-line:hover {
  border-color: var(--brand-orange);
  transform: translateX(4px);
}

.contact-line svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand-orange);
}

.contact-line__k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

.contact-line__v {
  color: var(--text-hi);
  font-weight: 500;
}

@media (min-width: 1024px) {
  .cta__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--sp-8);
    align-items: center;
  }
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.footer__brand {
  display: grid;
  gap: var(--sp-4);
  max-width: 34ch;
}

.footer__tag {
  font-size: var(--fs-sm);
}

.footer h4 {
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}

.footer__links {
  display: grid;
  gap: 10px;
}

.footer__links a {
  color: var(--text-mid);
  font-size: var(--fs-sm);
}

.footer__links a:hover {
  color: var(--brand-orange-300);
}

.footer address {
  font-style: normal;
  font-size: var(--fs-sm);
  display: grid;
  gap: 8px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: var(--sp-5);
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-sm);
  color: var(--text-mid);
  transition:
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}

.socials a:hover {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
  transform: translateY(-2px);
}

.socials svg {
  width: 17px;
  height: 17px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-800);
  font-size: var(--fs-xs);
  color: var(--text-low);
}

/* ==========================================================================
   11. STICKY MOBILE ACTION BAR
   ========================================================================== */
.action-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 12, 16, 0.92);
  border-top: 1px solid var(--ink-700);
  backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform var(--t-base) var(--ease-out);
}

.action-bar.is-visible {
  transform: none;
}

.action-bar .btn {
  min-height: 46px;
  font-size: var(--fs-xs);
}

@media (min-width: 1024px) {
  .action-bar {
    display: none;
  }
}

/* clear the fixed bar so the footer is never covered */
@media (max-width: 1023px) {
  .footer {
    padding-bottom: 86px;
  }
}

/* ==========================================================================
   12. DIVIDER (diamond strip)
   ========================================================================== */
.divider {
  height: 40px;
  overflow: hidden;
  opacity: 0.5;
}

.divider svg {
  width: 200%;
  height: 100%;
}

/* ==========================================================================
   13. FORMS (used on contact page; styles live here for reuse)
   ========================================================================== */
.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--ink-850);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  color: var(--text-hi);
  transition:
    border-color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-low);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-orange);
  background: var(--ink-800);
  outline: none;
}

/* ==========================================================================
   14. FILTER CHIPS (services index, projects)
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.filters__btn {
  padding: 9px 16px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-pill);
  background: var(--ink-850);
  color: var(--text-mid);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.filters__btn:hover {
  color: var(--text-hi);
  border-color: var(--ink-600);
}

.filters__btn[aria-pressed="true"] {
  background: rgba(241, 89, 42, 0.12);
  border-color: var(--brand-orange);
  color: var(--brand-orange-300);
}

/* ==========================================================================
   15. PROSE + LISTS (inner pages)
   ========================================================================== */
.prose {
  max-width: var(--maxw-prose);
  display: grid;
  gap: var(--sp-5);
  font-size: var(--fs-body-lg);
}

.ticks {
  display: grid;
  gap: var(--sp-4);
}

.ticks li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.ticks svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 4px;
  color: var(--brand-orange);
}

.ticks strong {
  display: block;
  margin-bottom: 2px;
}

.ticks p {
  font-size: var(--fs-sm);
}

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.spec-table th,
.spec-table td {
  padding: var(--sp-4) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--ink-700);
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  color: var(--text-hi);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  overflow: hidden;
}

@media (max-width: 559px) {
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
    padding-bottom: 0;
  }
  .spec-table td {
    padding-top: 4px;
    padding-bottom: var(--sp-4);
  }
  .spec-table th {
    border-bottom: 0;
  }
}

/* ==========================================================================
   16. FAQ (details/summary — works with zero JS)
   ========================================================================== */
.faq {
  display: grid;
  gap: var(--sp-3);
  max-width: 860px;
}

.faq details {
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: var(--ink-800);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease-out);
}

.faq details[open] {
  border-color: var(--ink-600);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand-orange);
  border-bottom: 2px solid var(--brand-orange);
  transform: rotate(45deg);
  transition: transform var(--t-base) var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq__body {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
}

/* ==========================================================================
   17. BREADCRUMBS
   ========================================================================== */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-low);
}

.crumbs a {
  color: var(--text-mid);
}

.crumbs a:hover {
  color: var(--brand-orange-300);
}

.crumbs span[aria-hidden] {
  color: var(--ink-600);
}

/* ==========================================================================
   18. TIMELINE (about page)
   ========================================================================== */
.timeline {
  position: relative;
  display: grid;
  gap: var(--sp-6);
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-orange), var(--brand-blue));
  opacity: 0.5;
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--brand-orange);
  transform: rotate(45deg);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--brand-orange);
}

.timeline__item h3 {
  margin: 6px 0 6px;
  font-size: var(--fs-h4);
}

.timeline__item p {
  font-size: var(--fs-sm);
  max-width: 58ch;
}

/* ==========================================================================
   19. CONTACT PAGE LAYOUT
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: var(--sp-7);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--sp-8);
    align-items: start;
  }
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
}

.form-grid {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-note {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border: 1px solid var(--brand-orange);
  border-radius: var(--r-md);
  background: rgba(241, 89, 42, 0.08);
  font-size: var(--fs-sm);
  color: var(--text-hi);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--text-mid);
}

/* honeypot — hidden from humans, visible to naive bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-850);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) invert(0.9) hue-rotate(180deg) contrast(0.9);
}

/* ==========================================================================
   20. 404
   ========================================================================== */
.error-page {
  display: grid;
  place-items: center;
  min-height: 78svh;
  padding-block: calc(var(--header-h) + var(--sp-8)) var(--sp-8);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
