/* ==========================================================================
   NEXUS MEN'S WEAR — Core styles
   Ink, Melton & Sand · Poppins / Cairo · sharp cuts, raw textures
   ========================================================================== */

:root {
	/* Brand palette */
	--nx-black: #0F1114;     /* Midnight Black */
	--nx-ink: #1B2438;       /* Ink Navy */
	--nx-sand: #E5D9C0;      /* Sand Paper */
	--nx-sand-2: #DCCDAF;    /* deeper sand for depth */
	--nx-charcoal: #4A4E57;  /* Charcoal Melton */
	--nx-grey: #A9ABB0;      /* Heather Grey */
	--nx-bone: #F3EEE3;      /* Bone */
	--nx-clay: #B8733A;      /* Clay Thread — thread-thin accent */
	--nx-clay-dark: #9C5F2D;

	--nx-text: #1F2430;
	--nx-muted: #5D616B;
	--nx-line: rgba(27, 36, 56, .14);
	--nx-line-strong: rgba(27, 36, 56, .28);

	--nx-font: "Poppins", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--nx-font-ar: "Cairo", "Poppins", system-ui, sans-serif;

	--nx-container: 1320px;
	--nx-gutter: clamp(16px, 4vw, 40px);
	--nx-header-h: 76px;
	--nx-ease: cubic-bezier(.2, .7, .2, 1);
	--nx-shadow: 0 18px 40px -22px rgba(15, 17, 20, .45);
	--nx-texture: url("../img/melton-texture.jpg");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--nx-sand);
	color: var(--nx-text);
	font-family: var(--nx-font);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
html[dir="rtl"] body, :lang(ar) body { font-family: var(--nx-font-ar); }
body.nx-lock { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--nx-clay); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 700; line-height: 1.12; color: var(--nx-ink); }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.2em; }
hr { border: 0; border-top: 1px dashed var(--nx-clay); margin: 2em 0; }
::selection { background: var(--nx-ink); color: var(--nx-sand); }
:focus-visible { outline: 2px solid var(--nx-clay); outline-offset: 3px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 999;
	top: 8px; inset-inline-start: 8px; padding: 12px 18px; background: var(--nx-black); color: var(--nx-bone);
}

/* ---------- Layout ---------- */
.nx-container { width: 100%; max-width: var(--nx-container); margin-inline: auto; padding-inline: var(--nx-gutter); }
.nx-container--narrow { max-width: 820px; }
.nx-section { padding-block: clamp(64px, 9vw, 120px); }
.nx-section--tight { padding-block: clamp(40px, 6vw, 72px); }
.nx-section--bone { background: var(--nx-bone); }

/* ---------- Type helpers ---------- */
.nx-kicker {
	display: inline-block;
	font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
	color: var(--nx-clay);
	margin-bottom: 14px;
}
.nx-title {
	font-size: clamp(26px, 3.4vw, 44px);
	font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--nx-ink); margin: 0;
}
.nx-title--xl { font-size: clamp(34px, 5.2vw, 64px); letter-spacing: .05em; line-height: 1.02; }
html[dir="rtl"] .nx-title, html[dir="rtl"] .nx-kicker { letter-spacing: 0; }

.nx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.nx-link-arrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-ink);
	padding-bottom: 6px; border-bottom: 1px dashed var(--nx-clay); white-space: nowrap;
}
.nx-link-arrow .nx-icon { width: 16px; height: 16px; transition: transform .3s var(--nx-ease); }
.nx-link-arrow:hover .nx-icon { transform: translateX(4px); }
html[dir="rtl"] .nx-link-arrow .nx-icon, html[dir="rtl"] .nx-btn .nx-icon--arrow { transform: scaleX(-1); }

/* ---------- Icons & icon buttons ---------- */
.nx-icon { width: 22px; height: 22px; flex: none; }
.nx-iconbtn {
	position: relative; display: inline-grid; place-items: center;
	width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--nx-ink);
}
.nx-iconbtn:hover { color: var(--nx-clay); }
.nx-count {
	position: absolute; top: 4px; inset-inline-end: 2px;
	min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
	background: var(--nx-clay); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
}
.nx-count[data-count="0"] { display: none; }

.nx-mark { width: 28px; height: auto; color: var(--nx-ink); }
.nx-mark--sm { width: 22px; }
.nx-mark--lg { width: 56px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.nx-btn, .button, button.button, input[type="submit"], .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 14px 28px;
	border: 1px solid var(--nx-ink); border-radius: 0;
	background: var(--nx-ink); color: var(--nx-bone);
	font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
	cursor: pointer; text-decoration: none;
	transition: background .25s var(--nx-ease), color .25s var(--nx-ease), border-color .25s var(--nx-ease), transform .25s var(--nx-ease);
}
.nx-btn:hover, .button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { background: var(--nx-black); border-color: var(--nx-black); color: var(--nx-bone); }
.nx-btn .nx-icon { width: 16px; height: 16px; transition: transform .3s var(--nx-ease); }
.nx-btn:hover .nx-icon--arrow { transform: translateX(4px); }
html[dir="rtl"] .nx-btn:hover .nx-icon--arrow { transform: scaleX(-1) translateX(4px); }
.nx-btn--ink { background: var(--nx-ink); border-color: var(--nx-ink); color: var(--nx-bone); }
.nx-btn--bone { background: var(--nx-bone); border-color: var(--nx-bone); color: var(--nx-black); }
.nx-btn--bone:hover { background: var(--nx-sand); border-color: var(--nx-sand); color: var(--nx-black); }
.nx-btn--clay { background: var(--nx-clay); border-color: var(--nx-clay); color: #fff; }
.nx-btn--clay:hover { background: var(--nx-clay-dark); border-color: var(--nx-clay-dark); color: #fff; }
.nx-btn--line { background: transparent; color: var(--nx-ink); border-color: var(--nx-ink); }
.nx-btn--line:hover { background: var(--nx-ink); color: var(--nx-bone); }
.nx-btn--ghost { background: transparent; color: var(--nx-bone); border-color: rgba(243, 238, 227, .5); }
.nx-btn--ghost:hover { background: var(--nx-bone); color: var(--nx-black); border-color: var(--nx-bone); }
.nx-btn--sm { min-height: 40px; padding: 10px 18px; font-size: 11px; }
.nx-btn--block { width: 100%; }
html[dir="rtl"] .nx-btn, html[dir="rtl"] .button { letter-spacing: 0; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
input[type="number"], input[type="url"], input[type="date"], select, textarea {
	width: 100%; min-height: 50px; padding: 12px 16px;
	background: var(--nx-bone); color: var(--nx-text);
	border: 1px solid var(--nx-line-strong); border-radius: 0;
	font-family: inherit; font-size: 14px; line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
textarea { min-height: 130px; resize: vertical; }
select {
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2438' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-size: 16px; background-position: right 14px center;
}
html[dir="rtl"] select { background-position: left 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--nx-ink); box-shadow: 0 0 0 3px rgba(184, 115, 58, .18); }
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--nx-ink); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--nx-ink); width: 16px; height: 16px; }

.nx-searchform { display: flex; gap: 0; max-width: 520px; margin: 24px auto 0; }
.nx-searchform input { flex: 1; }

/* ==========================================================================
   ANNOUNCEMENT + HEADER
   ========================================================================== */
.nx-announce { background: var(--nx-black); color: var(--nx-bone); height: 38px; overflow: hidden; }
.nx-announce__track { position: relative; height: 100%; max-width: var(--nx-container); margin: 0 auto; padding-inline: var(--nx-gutter); }
.nx-announce__item {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
	font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
	opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--nx-ease);
	padding-inline: var(--nx-gutter);
}
.nx-announce__item.is-active { opacity: 1; transform: none; }
html[dir="rtl"] .nx-announce__item { letter-spacing: .02em; }

.nx-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(229, 217, 192, .94);
	-webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
	border-bottom: 1px solid var(--nx-line);
	transition: box-shadow .3s, background .3s;
}
.admin-bar .nx-header { top: 32px; }
.nx-header.is-scrolled { box-shadow: 0 10px 30px -20px rgba(15, 17, 20, .5); }
.nx-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--nx-header-h); }
.nx-header__left { display: flex; align-items: center; gap: 8px; }
.nx-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.nx-logo { display: block; }
.nx-logo__img { height: 40px; width: auto; transition: height .3s var(--nx-ease); }
.nx-header.is-scrolled .nx-logo__img { height: 34px; }
.nx-burger { display: none; margin-inline-start: -10px; }

.nx-nav .nx-menu { display: flex; gap: clamp(16px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
.nx-nav .nx-menu > li { position: relative; }
.nx-nav .nx-menu > li > a {
	display: block; padding: 26px 0; position: relative;
	font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-ink);
}
html[dir="rtl"] .nx-nav .nx-menu > li > a { letter-spacing: 0; font-size: 14px; }
.nx-nav .nx-menu > li > a::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 20px; height: 0;
	border-bottom: 1px dashed var(--nx-clay); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--nx-ease);
}
.nx-nav .nx-menu > li:hover > a::after, .nx-nav .nx-menu > .current-menu-item > a::after { transform: scaleX(1); }
.nx-nav .sub-menu {
	position: absolute; top: 100%; inset-inline-start: -24px; min-width: 230px;
	list-style: none; margin: 0; padding: 14px 0;
	background: var(--nx-black); color: var(--nx-bone);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--nx-ease);
}
.nx-nav li:hover > .sub-menu, .nx-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nx-nav .sub-menu a { display: block; padding: 10px 24px; font-size: 13px; color: var(--nx-bone); }
.nx-nav .sub-menu a:hover { color: var(--nx-sand); background: rgba(255, 255, 255, .04); }

/* ---------- Drawers / overlay ---------- */
.nx-overlay {
	position: fixed; inset: 0; z-index: 90; background: rgba(15, 17, 20, .55);
	opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.nx-overlay.is-active { opacity: 1; visibility: visible; }
.nx-drawer {
	position: fixed; top: 0; bottom: 0; z-index: 100; width: min(440px, 92vw);
	display: flex; flex-direction: column;
	background: var(--nx-bone); color: var(--nx-text);
	transition: transform .45s var(--nx-ease); visibility: hidden;
}
.nx-drawer--left { inset-inline-start: 0; transform: translateX(-102%); }
.nx-drawer--right { inset-inline-end: 0; transform: translateX(102%); }
html[dir="rtl"] .nx-drawer--left { transform: translateX(102%); }
html[dir="rtl"] .nx-drawer--right { transform: translateX(-102%); }
.nx-drawer.is-open { transform: none !important; visibility: visible; }
.nx-drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 24px; border-bottom: 1px dashed var(--nx-clay);
}
.nx-drawer__title { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.nx-drawer__title .nx-count { position: static; display: inline-block; }
.nx-drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.nx-drawer__foot { padding: 20px 24px; border-top: 1px solid var(--nx-line); display: grid; gap: 16px; }

.nx-mobile-menu .nx-menu { list-style: none; margin: 0; padding: 0; }
.nx-mobile-menu .nx-menu > li { border-bottom: 1px solid var(--nx-line); }
.nx-mobile-menu .nx-menu a { display: block; padding: 16px 0; font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--nx-ink); }
.nx-mobile-menu .sub-menu { list-style: none; padding: 0 0 12px 14px; margin: 0; }
.nx-mobile-menu .sub-menu a { padding: 8px 0; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--nx-muted); }

/* ---------- Search overlay ---------- */
.nx-search {
	position: fixed; inset: 0 0 auto 0; z-index: 110;
	background: var(--nx-black); color: var(--nx-bone);
	padding: 40px 0; transform: translateY(-100%); transition: transform .45s var(--nx-ease);
}
.nx-search.is-open { transform: none; }
.nx-search .nx-container { position: relative; }
.nx-search__form { display: flex; align-items: center; border-bottom: 1px dashed var(--nx-clay); max-width: 900px; margin: 0 auto; }
.nx-search__form input {
	flex: 1; min-height: 70px; background: transparent; border: 0; color: var(--nx-bone);
	font-size: clamp(20px, 3vw, 34px); font-weight: 600; letter-spacing: .04em; padding-inline: 0;
}
.nx-search__form input:focus { box-shadow: none; }
.nx-search__form input::placeholder { color: rgba(243, 238, 227, .35); }
.nx-search .nx-iconbtn { color: var(--nx-bone); }
.nx-search__close { position: absolute; top: -28px; inset-inline-end: var(--nx-gutter); }

/* ---------- Modal ---------- */
.nx-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.nx-modal.is-open { visibility: visible; opacity: 1; }
.nx-modal__box { width: min(760px, 100%); max-height: 86vh; overflow: auto; background: var(--nx-bone); box-shadow: var(--nx-shadow); }
.nx-modal__body { padding: 24px; }

/* ==========================================================================
   HOME — HERO
   ========================================================================== */
.nx-hero {
	position: relative; display: grid; min-height: clamp(560px, calc(100vh - var(--nx-header-h) - 38px), 860px);
	background: var(--nx-black); overflow: hidden; isolation: isolate;
}
.nx-hero__media {
	position: absolute; inset: 0; inset-inline-start: 38%;
	background-size: cover; background-position: center;
}
.nx-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.nx-hero__ghost { position: absolute; width: 46%; max-width: 380px; inset-inline-end: 10%; top: 50%; transform: translateY(-50%); color: var(--nx-ink); opacity: .16; }
.nx-hero__label {
	position: absolute; inset-inline-end: clamp(16px, 4vw, 48px); bottom: clamp(24px, 5vw, 56px); z-index: 2;
	background: var(--nx-black); color: var(--nx-bone); padding: 22px 28px; min-width: 240px;
}
.nx-hero__label span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--nx-clay); margin-bottom: 8px; }
.nx-hero__label strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35; }

.nx-hero__panel {
	position: relative; z-index: 1; width: 62%;
	background: var(--nx-black); color: var(--nx-bone);
	clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
	display: flex; align-items: center;
}
html[dir="rtl"] .nx-hero__panel { clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%); }
.nx-hero__content {
	width: 100%; max-width: calc(var(--nx-container) * .62);
	margin-inline-start: max(var(--nx-gutter), calc((100vw - var(--nx-container)) / 2 + var(--nx-gutter)));
	padding-block: 72px; padding-inline-end: 18%;
}
.nx-hero__mark { width: 46px; color: var(--nx-sand); margin-bottom: 36px; }
.nx-hero .nx-kicker { margin-bottom: 18px; }
.nx-hero__title {
	font-size: clamp(44px, 5.8vw, 96px); font-weight: 700; line-height: .95;
	letter-spacing: .03em; text-transform: uppercase; color: var(--nx-bone); margin: 0;
}
html[dir="rtl"] .nx-hero__title { letter-spacing: 0; line-height: 1.1; }
.nx-swoosh { width: clamp(120px, 14vw, 200px); color: var(--nx-sand); margin: 16px 0 26px; }
html[dir="rtl"] .nx-swoosh { transform: scaleX(-1); }
.nx-hero__text { max-width: 440px; font-size: 16px; font-weight: 300; color: rgba(243, 238, 227, .8); margin-bottom: 34px; }
.nx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Marquee ---------- */
.nx-marquee { background: var(--nx-ink); color: var(--nx-sand); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(229, 217, 192, .12); }
.nx-marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: nx-marquee 40s linear infinite; }
.nx-marquee span { font-size: 14px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }
.nx-marquee__mark { width: 14px; color: var(--nx-clay); }
@keyframes nx-marquee { to { transform: translateX(-50%); } }
html[dir="rtl"] .nx-marquee__track { animation-name: nx-marquee-rtl; }
@keyframes nx-marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Categories ---------- */
.nx-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nx-cats--3 { grid-template-columns: repeat(3, 1fr); }
.nx-cats--2 { grid-template-columns: repeat(2, 1fr); }
.nx-cats--1 { grid-template-columns: 1fr; }
.nx-cat { position: relative; display: block; overflow: hidden; color: var(--nx-bone); }
.nx-cat__media { display: block; aspect-ratio: 4 / 5; background-size: cover; background-position: center; overflow: hidden; }
.nx-cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--nx-ease); }
.nx-cat:hover .nx-cat__media img { transform: scale(1.05); }
.nx-cat__label {
	position: absolute; inset-inline-start: 0; bottom: 0;
	display: flex; flex-direction: column; gap: 2px;
	background: var(--nx-black); padding: 16px 22px; min-width: 62%;
	transition: padding .35s var(--nx-ease), background .35s;
}
.nx-cat__label strong { font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nx-cat__label em { font-style: normal; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-grey); }
.nx-cat:hover { color: var(--nx-bone); }
.nx-cat:hover .nx-cat__label { padding-bottom: 24px; background: var(--nx-ink); }
.nx-cat::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--nx-clay); transition: box-shadow .3s; pointer-events: none; }

/* ---------- Story + values ---------- */
.nx-story { background: var(--nx-bone); }
.nx-story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.nx-story__text p { font-size: 16px; font-weight: 300; color: var(--nx-text); max-width: 520px; margin-top: 24px; }
.nx-story__media { position: relative; aspect-ratio: 1 / 1; background-size: cover; background-position: center; box-shadow: var(--nx-shadow); }
.nx-labelblock {
	position: absolute; inset-inline: 8%; bottom: 8%;
	background: var(--nx-black); color: var(--nx-bone); padding: 28px 32px;
}
.nx-labelblock span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--nx-clay); margin-bottom: 10px; }
.nx-labelblock strong { font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nx-pillars { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--nx-line); max-width: 520px; }
.nx-pillars div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--nx-line); font-size: 14px; }
.nx-pillars strong { font-weight: 600; color: var(--nx-ink); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.nx-pillars span { color: var(--nx-muted); }

.nx-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(48px, 7vw, 90px); }
.nx-value { background: var(--nx-ink); color: var(--nx-bone); padding: 32px 30px 40px; min-height: 250px; transition: transform .35s var(--nx-ease); }
.nx-value:nth-child(even) { background: var(--nx-charcoal); }
.nx-value:hover { transform: translateY(-6px); }
.nx-value__num { display: block; font-size: 40px; font-weight: 300; line-height: 1; color: var(--nx-sand); margin-bottom: 26px; }
.nx-value h3 { color: var(--nx-bone); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.nx-value p { font-size: 13px; font-weight: 300; color: rgba(243, 238, 227, .78); margin: 0; }

/* ---------- Banner ---------- */
.nx-banner { position: relative; background: var(--nx-black); color: var(--nx-bone); overflow: hidden; isolation: isolate; }
.nx-banner__media {
	position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 58%;
	background-size: cover; background-position: center;
	clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}
html[dir="rtl"] .nx-banner__media { clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
.nx-banner__inner { position: relative; z-index: 1; min-height: 560px; display: flex; align-items: center; }
.nx-banner__box { max-width: 520px; padding: clamp(32px, 5vw, 56px); border: 1px solid rgba(243, 238, 227, .35); margin-block: 60px; }
.nx-banner .nx-title { color: var(--nx-bone); }
.nx-banner p { color: rgba(243, 238, 227, .75); font-weight: 300; margin: 18px 0 30px; }

/* ---------- Community ---------- */
.nx-community {
	position: relative; padding-block: clamp(80px, 10vw, 140px);
	background-color: var(--nx-sand);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg transform='translate(34 30) scale(.075)' fill='%231B2438' fill-opacity='.11'%3E%3Cpath d='M58 53 330 251V107l77-38v352L58 147zM47 208l353 283v94L125 376v119l-78 44z'/%3E%3C/g%3E%3C/svg%3E");
}
.nx-community__inner { display: grid; place-items: center; }
.nx-community__card { background: var(--nx-bone); padding: clamp(36px, 6vw, 72px); text-align: center; max-width: 640px; box-shadow: var(--nx-shadow); }
.nx-community__card p { color: var(--nx-muted); margin: 16px 0 6px; }
.nx-community__tags { color: var(--nx-clay) !important; font-weight: 500; margin-bottom: 28px !important; }

.nx-admin-note { padding: 18px 22px; border: 1px dashed var(--nx-clay); background: var(--nx-bone); font-size: 13px; }

/* ==========================================================================
   PERKS + FOOTER
   ========================================================================== */
.nx-perks { background: var(--nx-bone); border-top: 1px solid var(--nx-line); }
.nx-perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.nx-perk { display: flex; align-items: center; gap: 16px; padding: 30px 24px; border-inline-end: 1px solid var(--nx-line); }
.nx-perk:last-child { border-inline-end: 0; }
.nx-perk .nx-icon { width: 30px; height: 30px; color: var(--nx-clay); }
.nx-perk strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--nx-ink); }
.nx-perk span { font-size: 13px; color: var(--nx-muted); }

.nx-footer { position: relative; background: var(--nx-black); color: rgba(243, 238, 227, .72); overflow: hidden; padding-bottom: 28px; }
.nx-footer__cut { height: clamp(60px, 8vw, 110px); background: var(--nx-texture) center / cover; clip-path: polygon(0 0, 100% 0, 100% 25%, 0 100%); margin-bottom: 40px; }
html[dir="rtl"] .nx-footer__cut { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 25%); }
.nx-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: clamp(28px, 4vw, 64px); }
.nx-footer .nx-logo__img { height: 54px; margin-bottom: 22px; }
.nx-footer__brand p { font-size: 14px; font-weight: 300; max-width: 340px; }
.nx-footer h4 { color: var(--nx-bone); font-size: 12px; letter-spacing: .26em; text-transform: uppercase; margin: 10px 0 20px; }
.nx-footer__menu, .nx-footer .nx-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.nx-footer a:hover { color: var(--nx-sand); }
.nx-footer__news p { font-size: 14px; font-weight: 300; }
.nx-newsletter { display: flex; margin-top: 18px; }
.nx-newsletter input[type="email"] { background: transparent; border-color: rgba(243, 238, 227, .25); color: var(--nx-bone); }
.nx-newsletter input[type="email"]::placeholder { color: rgba(243, 238, 227, .45); }
.nx-newsletter .nx-btn { flex: none; }
.nx-newsletter__msg { color: var(--nx-sand); font-size: 13px; margin-top: 10px; }
.nx-hp { position: absolute !important; left: -9999px; opacity: 0; }
.nx-section .nx-newsletter input[type="email"] { color: var(--nx-text); border-color: var(--nx-line-strong); }
.nx-footer__stitch { border-top: 1px dashed var(--nx-clay); margin: clamp(40px, 6vw, 72px) 0 22px; }
.nx-footer__bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.nx-footer__handle { color: var(--nx-clay); }
.nx-footer__ghost { position: absolute; inset-inline-end: -40px; bottom: -60px; width: 320px; color: var(--nx-bone); opacity: .03; pointer-events: none; }

.nx-social { display: flex; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.nx-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(243, 238, 227, .22); color: var(--nx-bone); transition: all .25s; }
.nx-social a:hover { background: var(--nx-sand); color: var(--nx-black); border-color: var(--nx-sand); }
.nx-social .nx-icon { width: 18px; height: 18px; }
.nx-drawer .nx-social { margin: 0; }
.nx-drawer .nx-social a { color: var(--nx-ink); border-color: var(--nx-line-strong); }

.nx-wa {
	position: fixed; z-index: 80; bottom: 22px; inset-inline-end: 22px;
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: var(--nx-ink); color: var(--nx-sand); box-shadow: var(--nx-shadow); border: 2px solid var(--nx-clay);
	transition: transform .3s var(--nx-ease);
}
.nx-wa:hover { transform: translateY(-4px); color: var(--nx-bone); }
.nx-wa .nx-icon { width: 26px; height: 26px; }

/* ==========================================================================
   PAGES / BLOG
   ========================================================================== */
.nx-pagehead { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--nx-line); }
.nx-pagehead--compact { padding-block: clamp(32px, 4vw, 56px) 28px; }
.nx-pagehead__desc { max-width: 620px; margin-top: 16px; color: var(--nx-muted); }
.nx-meta { display: block; margin-top: 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--nx-muted); }

.nx-prose { font-size: 16px; line-height: 1.8; }
.nx-prose--page { max-width: 820px; }
.nx-prose h2 { font-size: 28px; text-transform: uppercase; letter-spacing: .05em; margin-top: 1.6em; }
.nx-prose h3 { font-size: 21px; margin-top: 1.4em; }
.nx-prose a { color: var(--nx-clay); border-bottom: 1px dashed currentColor; }
.nx-prose blockquote { margin: 2em 0; padding: 26px 30px; background: var(--nx-ink); color: var(--nx-bone); border-inline-start: 4px solid var(--nx-clay); font-size: 18px; }
.nx-prose img { margin-block: 1.6em; }
.nx-prose table, .nx-modal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nx-prose th, .nx-prose td, .nx-modal th, .nx-modal td { padding: 12px 14px; border-bottom: 1px solid var(--nx-line); text-align: start; }
.nx-prose th, .nx-modal th { background: var(--nx-ink); color: var(--nx-bone); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }

.nx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nx-post { background: var(--nx-bone); display: flex; flex-direction: column; transition: transform .35s var(--nx-ease), box-shadow .35s; }
.nx-post:hover { transform: translateY(-4px); box-shadow: var(--nx-shadow); }
.nx-post__media { position: relative; display: block; aspect-ratio: 4 / 3; background-size: cover; overflow: hidden; }
.nx-post__media img { width: 100%; height: 100%; object-fit: cover; }
.nx-post__ghost { position: absolute; width: 60px; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--nx-ink); opacity: .3; }
.nx-post__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.nx-post__body p { color: var(--nx-muted); font-size: 14px; flex: 1; }
.nx-post__title { font-size: 19px; text-transform: uppercase; letter-spacing: .04em; }
.nx-single__media img { width: 100%; margin-top: 40px; }
.nx-single__tags a { display: inline-block; margin: 0 6px 6px 0; padding: 6px 12px; border: 1px solid var(--nx-line-strong); font-size: 12px; }
.post-navigation .nav-links, .nx-pagination .nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }
.post-navigation a span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--nx-clay); }
.nx-pagination .nav-links { justify-content: center; gap: 6px; }
.nx-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--nx-line-strong); font-weight: 600; }
.nx-pagination .page-numbers.current { background: var(--nx-ink); border-color: var(--nx-ink); color: var(--nx-bone); }

.nx-empty, .nx-404 { text-align: center; }
.nx-empty .nx-mark { margin-bottom: 18px; }
.nx-404 { padding-block: clamp(80px, 12vw, 160px); }
.nx-404__mark { width: 90px; margin: 0 auto 28px; }
.nx-404 p { color: var(--nx-muted); margin: 18px auto 30px; max-width: 460px; }
.nx-404__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.nx-comments { margin-top: 64px; padding-top: 40px; border-top: 1px dashed var(--nx-clay); }
.nx-comments__list { list-style: none; padding: 0; }
.nx-comments__list .comment-body { padding: 20px 0; border-bottom: 1px solid var(--nx-line); }
.nx-comments__list .avatar { border-radius: 50%; float: left; margin-inline-end: 14px; }

.nx-widget { margin-bottom: 32px; }
.nx-widget__title { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px dashed var(--nx-clay); }
.nx-widget ul { list-style: none; padding: 0; margin: 0; }
.nx-widget li { padding: 6px 0; font-size: 14px; }

/* Gutenberg alignments */
.alignwide { width: min(1240px, 100vw - 2 * var(--nx-gutter)); margin-inline: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-inline: 50%; transform: translateX(-50%); }

/* ==========================================================================
   Motion
   ========================================================================== */
.nx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--nx-ease), transform .9s var(--nx-ease); }
.nx-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.nx-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.nx-footer__grid { grid-template-columns: 1fr 1fr; }
	.nx-values { grid-template-columns: repeat(2, 1fr); }
	.nx-perks__grid { grid-template-columns: repeat(2, 1fr); }
	.nx-perk:nth-child(2) { border-inline-end: 0; }
	.nx-perk:nth-child(-n+2) { border-bottom: 1px solid var(--nx-line); }
}
@media (max-width: 960px) {
	:root { --nx-header-h: 64px; }
	.nx-nav { display: none; }
	.nx-burger { display: inline-grid; }
	.nx-logo__img { height: 32px; }
	.nx-header.is-scrolled .nx-logo__img { height: 30px; }

	.nx-hero { display: block; min-height: 0; }
	.nx-hero__media { position: relative; inset: auto; height: 62vw; min-height: 340px; max-height: 520px; }
	.nx-hero__panel { width: 100%; clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%); margin-top: -60px; }
	html[dir="rtl"] .nx-hero__panel { clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 100%); }
	.nx-hero__content { margin: 0; max-width: none; padding: 96px var(--nx-gutter) 56px; }
	.nx-hero__mark { display: none; }
	.nx-hero__label { bottom: 80px; padding: 16px 20px; min-width: 0; }

	.nx-cats, .nx-cats--3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.nx-story__grid { grid-template-columns: 1fr; }
	.nx-posts { grid-template-columns: repeat(2, 1fr); }
	.nx-banner__media { position: relative; width: 100%; height: 320px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
	.nx-banner__inner { min-height: 0; }
	.nx-banner__box { margin-block: 20px 56px; }
}
@media (max-width: 782px) { .admin-bar .nx-header { top: 46px; } }
@media (max-width: 600px) {
	.admin-bar .nx-header { top: 0; }
	body { font-size: 14px; }
	.nx-hide-sm { display: none; }
	.nx-head { flex-direction: column; align-items: flex-start; }
	.nx-value { min-height: 0; }
	.nx-posts { grid-template-columns: 1fr; }
	.nx-footer__grid { grid-template-columns: 1fr; }
	.nx-perks__grid { grid-template-columns: 1fr; }
	.nx-perk { border-inline-end: 0; border-bottom: 1px solid var(--nx-line); padding: 18px 4px; }
	.nx-cat__label { padding: 12px 14px; min-width: 0; inset-inline-end: 0; }
	.nx-cat__label strong { font-size: 12px; }
	.nx-hero__actions { flex-direction: column; }
	.nx-hero__actions .nx-btn { width: 100%; white-space: nowrap; }
	.nx-values { grid-template-columns: 1fr 1fr; gap: 10px; }
	.nx-value { padding: 24px 20px 28px; }
	.nx-value__num { font-size: 30px; margin-bottom: 16px; }
	.nx-announce__item { font-size: 10px; letter-spacing: .12em; }
}
