/* ==========================================================================
   EVNEX. — base system
   Charcoal, amber, off-white. Manrope + JetBrains Mono.
   ========================================================================== */

:root {
  --ink: #171b1c;
  --ink-2: #1e2425;
  --ink-3: #2a3132;
  --amber: #ffb323;
  --amber-deep: #e9a000;
  --paper: #e6e6e2;
  --paper-2: #f2f1ec;
  --white: #ffffff;
  --grey: #5d6462;
  --grey-2: #626866;
  --amber-ink: #8a5a00;
  --line: rgba(23, 27, 28, 0.14);
  --line-2: rgba(23, 27, 28, 0.08);
  --line-dark: rgba(230, 230, 226, 0.16);
  --line-dark-2: rgba(230, 230, 226, 0.08);

  --f-display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --t-h1: clamp(2.9rem, 1.4rem + 5.4vw, 6.4rem);
  --t-h2: clamp(2.05rem, 1.3rem + 3.1vw, 4rem);
  --t-h3: clamp(1.28rem, 1.1rem + 0.55vw, 1.62rem);
  --t-lg: clamp(1.06rem, 0.98rem + 0.35vw, 1.28rem);
  --t-sm: 0.91rem;
  --t-xs: 0.78rem;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.02rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
dl,
dd,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 300;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 9vw, 138px);
}

.mono {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--amber);
  flex: none;
}

.eyebrow-light {
  color: rgba(230, 230, 226, 0.6);
}

.eyebrow-dark {
  color: var(--ink);
}

.eyebrow-sep {
  color: var(--amber);
  font-weight: 400;
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.56;
  color: var(--grey);
  max-width: 58ch;
}

.on-dark {
  background: var(--ink);
  color: var(--paper);
}

.on-dark .lede {
  color: rgba(230, 230, 226, 0.68);
}

.amber {
  color: var(--amber);
}

.ink-soft {
  color: var(--grey);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  width: fit-content;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}

.arrow-link .arr,
.btn .arr {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.arrow-link:hover {
  color: var(--amber-ink);
  border-color: var(--amber-ink);
}

.arrow-link:hover .arr,
.btn:hover .arr {
  transform: translateX(4px);
}

.arrow-link-light {
  color: var(--paper);
  border-color: rgba(230, 230, 226, 0.5);
}

.arrow-link-light:hover {
  color: var(--amber);
  border-color: var(--amber);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2 {
  font-size: var(--t-h2);
  max-width: 18ch;
  margin-top: 18px;
}

.head-aside {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding-bottom: 6px;
}

.head-aside p {
  color: var(--grey);
  max-width: 44ch;
  font-size: 0.98rem;
}

.on-dark .head-aside p {
  color: rgba(230, 230, 226, 0.62);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: var(--ink);
  color: var(--white);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn-amber:hover {
  background: var(--ink);
  border-color: var(--amber);
  color: var(--amber);
}

.on-dark .btn-amber:hover {
  background: transparent;
  color: var(--amber);
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(230, 230, 226, 0.34);
  color: var(--paper);
}

.btn-outline-light:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--amber);
}

.btn-lg {
  padding: 17px 27px;
  font-size: 0.96rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-head.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px -24px rgba(23, 27, 28, 0.4);
}

.head-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  flex: none;
}

.brand-word {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.62rem;
  letter-spacing: -0.055em;
  line-height: 1;
}

.brand-dot {
  color: var(--amber-deep);
}

.brand-sub {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.brand-light {
  color: var(--white);
}

.brand-light .brand-sub {
  color: rgba(230, 230, 226, 0.55);
  border-color: var(--line-dark);
}

.desktop-nav {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  height: 100%;
}

.desktop-nav li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.desktop-nav li.has-mega {
  position: static;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.has-mega {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mega-toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.mega-toggle .chev {
  width: 10px;
  height: 7px;
  transition: transform 0.3s var(--ease);
}

.has-mega.is-open .mega-toggle .chev {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: min(1040px, calc(100vw - 40px));
  transform: translate(-50%, 10px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 80px -30px rgba(23, 27, 28, 0.42);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), transform 0.35s var(--ease), visibility 0.28s;
}

.mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -26px;
  height: 26px;
}

.has-mega.is-open .mega,
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (hover: none) {
  .has-mega:hover .mega {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
  }

  .has-mega.is-open .mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

.mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.mega-label {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 0 6px 14px;
  border-bottom: 1px solid var(--line);
}

.mega-label span {
  color: var(--amber-ink);
}

.mega-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  align-content: start;
}

.mega-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 9px;
  transition: background 0.22s, color 0.22s;
}

.mega-link:hover {
  background: var(--paper-2);
}

.mega-num {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--grey-2);
}

.mega-name {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.mega-arrow {
  font-size: 0.9rem;
  color: var(--grey-2);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.22s, transform 0.22s, color 0.22s;
}

.mega-link:hover .mega-arrow {
  opacity: 1;
  transform: none;
  color: var(--amber-deep);
}

.mega-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.mega-aside::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 35, 0.24), transparent 68%);
}

.mega-aside .mono {
  color: var(--amber);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mega-aside-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.mega-aside .btn {
  width: 100%;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.mega-call {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: rgba(230, 230, 226, 0.62);
}

.mega-call:hover {
  color: var(--amber);
}

.mega-all {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  padding: 15px 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mega-all span {
  color: var(--amber-ink);
  font-size: 1rem;
  transition: transform 0.25s var(--ease);
}

.mega-all:hover span {
  transform: translateX(5px);
}

.head-cta {
  padding: 12px 20px;
  flex: none;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: transparent;
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.8px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span:nth-child(1) {
  top: 18px;
}

.burger span:nth-child(2) {
  top: 26px;
}

body.menu-open .burger span:nth-child(1) {
  top: 22px;
  transform: rotate(45deg);
}

body.menu-open .burger span:nth-child(2) {
  top: 22px;
  transform: rotate(-45deg);
}

/* mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 97;
  background: var(--paper);
  padding: 104px var(--gutter) 32px;
  overflow-y: auto;
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease), visibility 0.5s;
}

body.menu-open .mobile-nav {
  visibility: visible;
  transform: none;
}

.mobile-nav-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-link {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 8vw, 2.9rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-link:hover {
  color: var(--amber-ink);
}

.mobile-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  padding: 18px 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.mobile-services a {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--grey);
}

.mobile-services a span {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: var(--amber-ink);
}

.mobile-nav-foot {
  margin-top: auto;
  display: grid;
  gap: 12px;
  justify-items: start;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.mobile-contact {
  font-weight: 600;
  font-size: 1rem;
}

.mobile-contact:hover {
  color: var(--amber-ink);
}

.mobile-nav-foot .mono {
  color: var(--grey);
  margin-top: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  background: #101415;
  color: var(--paper);
  padding-top: clamp(64px, 8vw, 100px);
  overflow: hidden;
}

.foot-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line-dark);
}

.foot-head .eyebrow {
  grid-column: 1 / -1;
}

.foot-big {
  font-size: clamp(2.6rem, 1.2rem + 4.8vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  max-width: 13ch;
}

.foot-head .btn {
  margin-bottom: 8px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1.5fr 1.15fr;
  gap: clamp(28px, 4vw, 62px);
  padding-block: clamp(44px, 5vw, 66px);
  border-bottom: 1px solid var(--line-dark);
}

.foot-brand .brand-word {
  font-size: 1.9rem;
}

.foot-logo-link {
  display: block;
  width: min(230px, 70%);
}

.foot-logo {
  width: 100%;
  height: auto;
}

.foot-tag {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(230, 230, 226, 0.78);
  max-width: 32ch;
}

.foot-note {
  margin-top: 8px;
  font-size: 0.86rem;
  color: rgba(230, 230, 226, 0.58);
  max-width: 34ch;
}

.foot-stamp {
  margin-top: 24px;
  color: rgba(230, 230, 226, 0.55);
  font-size: 0.66rem;
}

.foot-col h3 {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}

.foot-col ul {
  display: grid;
  gap: 9px;
}

.foot-col li a {
  font-size: 0.88rem;
  color: rgba(230, 230, 226, 0.7);
  transition: color 0.2s;
}

.foot-col li a:hover {
  color: var(--amber);
}

.foot-col-services ul {
  columns: 2;
  column-gap: 24px;
}

.foot-col-services li {
  break-inside: avoid;
  margin-bottom: 9px;
}

.foot-contact li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 4px;
}

.foot-contact li a {
  font-weight: 600;
  color: var(--paper);
}

.foot-contact li span {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230, 230, 226, 0.55);
}

.foot-col address {
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(230, 230, 226, 0.58);
  margin-top: 18px;
  max-width: 30ch;
}

.foot-map {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--amber);
  border-bottom: 1px solid rgba(255, 179, 35, 0.35);
  padding-bottom: 2px;
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 24px 30px;
  font-size: 0.72rem;
  color: rgba(230, 230, 226, 0.58);
}

.back-top {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: rgba(230, 230, 226, 0.6);
}

.back-top:hover {
  color: var(--amber);
}

/* floating contact */
.wa-float-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
}

.wa-float {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--amber);
  color: var(--ink);
  height: 56px;
  border-radius: 999px;
  padding: 0 16px;
  box-shadow: 0 16px 40px -12px rgba(23, 27, 28, 0.45);
  transition: gap 0.3s var(--ease), background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.wa-float svg {
  width: 25px;
  height: 25px;
  flex: none;
}

.wa-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  transition: max-width 0.35s var(--ease), margin-left 0.35s var(--ease);
}

.wa-float:hover {
  background: var(--ink);
  color: var(--amber);
  gap: 2px;
  transform: translateY(-2px);
}

.wa-float:hover .wa-label {
  max-width: 100px;
  margin-left: 8px;
}

.mobile-dock {
  display: none;
}

/* animation base */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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