/* ==========================================================================
   Import & export demo — NILE GATE / بوابة النيل
   Warm and worldly: aubergine, saffron and cream; Gloock + Hanken Grotesk
   (English), Aref Ruqaa + Alexandria (Arabic); a trade-route intro and a
   hero slider that pushes each photo through an arched gate. Every rule is under
   .ie-body, every class starts with ie-. Layout answers to the demo's width
   (container "demo").

   1. Fonts   2. Tokens & base   3. Buttons   4. Header   5. Hero slider
   6. Range   7. Season calendar   8. Incoterms   9. Markets & band
   10. RFQ   11. Footer & toast   12. Motion   13. Narrower widths
   ========================================================================== */

/* 1. Fonts (SIL Open Font License): Gloock + Hanken Grotesk in English, Aref
   Ruqaa + Alexandria in Arabic (400–600 only). ------------------------------- */
@font-face {
	font-family: "IE Gloock";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/gloock-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IE Hanken";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/hanken-400-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "IE Ruqaa";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/arefruqaa-400-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
	font-family: "IE Alexandria";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/alexandria-400-600-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* 2. Tokens & base ----------------------------------------------------------- */
.ie-body {
	--ie-indigo: #2a1530;
	--ie-indigo-2: #3a1f42;
	--ie-indigo-3: #55325f;
	--ie-saffron: #f0a71f;
	--ie-saffron-2: #d48a06;
	--ie-cream: #fbf5ee;
	--ie-cream-2: #f2e7dc;
	--ie-white: #fff;
	--ie-text: #24152a;
	--ie-muted: #6d6070;
	--ie-line: rgb(42 21 48 / 0.12);
	--ie-serif: "IE Gloock", Georgia, serif;
	--ie-sans: "IE Hanken", "Segoe UI", Arial, sans-serif;
	--ie-enter: 1.6s;
	--ie-start: left;
	--ie-ease: cubic-bezier(0.25, 0.85, 0.3, 1);
	--ie-dir: 1;

	margin: 0;
	font-family: var(--ie-sans);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ie-text);
	background: var(--ie-white);
	-webkit-font-smoothing: antialiased;
	font-synthesis-weight: none;
}

[dir="rtl"] .ie-body {
	--ie-dir: -1;
	--ie-start: right;
}

[lang="ar"] .ie-body {
	--ie-serif: "IE Ruqaa", "IE Gloock", Georgia, serif;
	--ie-sans: "IE Alexandria", "IE Hanken", Tahoma, sans-serif;

	font-size: 16px;
	line-height: 1.75;
}

[lang="ar"] .ie-body * {
	letter-spacing: 0 !important;
	text-transform: none !important;
}

:where(.ie-body) *,
:where(.ie-body) *::before,
:where(.ie-body) *::after {
	box-sizing: border-box;
}

:where(.ie-body) h1,
:where(.ie-body) h2,
:where(.ie-body) h3,
:where(.ie-body) p,
:where(.ie-body) ul,
:where(.ie-body) ol,
:where(.ie-body) dl,
:where(.ie-body) dd,
:where(.ie-body) figure {
	margin: 0;
	padding: 0;
}

:where(.ie-body) ul,
:where(.ie-body) ol {
	list-style: none;
}

:where(.ie-body) a {
	color: inherit;
	text-decoration: none;
}

:where(.ie-body) button,
:where(.ie-body) input,
:where(.ie-body) select {
	font: inherit;
	color: inherit;
}

:where(.ie-body) button {
	cursor: pointer;
}

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

.ie-body :focus-visible {
	outline: 2px solid var(--ie-saffron);
	outline-offset: 3px;
}

.ie-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

[dir="rtl"] .ie-icon--arrow,
[dir="rtl"] .ie-icon--out,
[dir="rtl"] .ie-icon--in {
	scale: -1 1;
}

.ie-wrap {
	width: min(100%, 1240px);
	margin-inline: auto;
	padding-inline: clamp(18px, 3cqi, 32px);
}

.ie-icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.ie-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ie-saffron-2);
}

.ie-kicker::before {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: radial-gradient(circle, #000 3px, transparent 3.5px), radial-gradient(circle, transparent 6px, #000 6.5px, #000 8px, transparent 8.5px);
	mask: radial-gradient(circle, #000 3px, transparent 3.5px), radial-gradient(circle, transparent 6px, #000 6.5px, #000 8px, transparent 8.5px);
}

.ie-body h1,
.ie-body h2,
.ie-body h3 {
	font-family: var(--ie-serif);
	font-weight: 400;
	line-height: 1.06;
	color: var(--ie-indigo);
}

[lang="ar"] .ie-body :is(h1, h2, h3) {
	font-weight: 600;
	line-height: 1.3;
}

/* Ruqaa is for the big headings; small titles read better in Alexandria. */
[lang="ar"] .ie-body h3 {
	font-family: var(--ie-sans);
	line-height: 1.45;
}

.ie-body h1 em,
.ie-body h2 em {
	font-style: italic;
	color: var(--ie-saffron-2);
}

[lang="ar"] .ie-body :is(h1, h2) em {
	font-style: normal;
}

.ie-body h2 {
	font-size: clamp(2.2rem, 1.3rem + 2.8cqi, 3.6rem);
}

/* 3. Buttons ------------------------------------------------------------------ */
.ie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	font-weight: 700;
	border: 2px solid transparent;
	border-radius: 999px;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ie-ease);
}

.ie-btn:hover {
	transform: translateY(-2px);
}

.ie-btn .ie-icon {
	transition: translate 0.3s var(--ie-ease);
}

.ie-btn:hover .ie-icon--arrow {
	translate: calc(4px * var(--ie-dir)) 0;
}

.ie-btn--saffron {
	color: var(--ie-indigo);
	background: var(--ie-saffron);
}

.ie-btn--saffron:hover {
	background: #ffb733;
}

.ie-btn--line {
	color: var(--ie-indigo);
	border-color: var(--ie-indigo);
}

.ie-btn--line:hover {
	color: var(--ie-cream);
	background: var(--ie-indigo);
}

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

.ie-btn:disabled {
	opacity: 0.6;
	cursor: default;
	transform: none;
}

/* 4. Header -------------------------------------------------------------------- */
.ie-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgb(251 245 238 / 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ie-line);
}

.ie-header__in {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 76px;
}

.ie-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.ie-logo__mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	color: var(--ie-saffron);
	background: var(--ie-indigo);
	border-radius: 14px 14px 4px 4px;
}

.ie-logo__mark .ie-icon {
	width: 26px;
	height: 26px;
}

.ie-logo b {
	display: block;
	font-family: var(--ie-serif);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	color: var(--ie-indigo);
}

[lang="ar"] .ie-logo b {
	font-weight: 600;
	font-size: 1.7rem;
}

.ie-logo small {
	display: block;
	font-size: 0.74rem;
	color: var(--ie-muted);
}

.ie-nav {
	display: flex;
	gap: 26px;
	margin-inline-start: auto;
	font-size: 0.94rem;
	font-weight: 600;
}

.ie-nav a {
	color: var(--ie-muted);
	transition: color 0.2s;
}

.ie-nav a:hover {
	color: var(--ie-indigo);
}

.ie-tools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ie-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ie-indigo);
	border: 1px solid var(--ie-line);
	border-radius: 999px;
}

.ie-lang:hover {
	border-color: var(--ie-indigo);
}

.ie-lang .ie-icon {
	width: 17px;
	height: 17px;
}

.ie-header__cta {
	min-height: 44px;
	padding: 0 20px;
}

.ie-burger {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--ie-indigo);
	background: none;
	border: 1px solid var(--ie-line);
	border-radius: 50%;
}

.ie-burger .ie-icon:last-child,
.ie-burger[aria-expanded="true"] .ie-icon:first-child {
	display: none;
}

.ie-burger[aria-expanded="true"] .ie-icon:last-child {
	display: block;
}

/* 5. Hero slider -------------------------------------------------------------------- */
/* Three slides: spices, export citrus, import. The photos slide through one
   arched gate, each pushing the last one aside, the words rise from masks, and
   the route chips float over the gate. Without JavaScript only the first slide
   shows. */
.ie-hero {
	padding-block: clamp(36px, 4.6cqi, 72px) clamp(36px, 4cqi, 60px);
	background:
		radial-gradient(60% 60% at 100% 0%, rgb(240 167 31 / 0.18), transparent 70%),
		var(--ie-cream);
}

[dir="rtl"] .ie-hero {
	background:
		radial-gradient(60% 60% at 0% 0%, rgb(240 167 31 / 0.18), transparent 70%),
		var(--ie-cream);
}

.ie-hero__stage {
	position: relative;
	display: grid;
}

/* Only the first slide waits for the intro. */
.ie-slide:not(:first-child),
.ie-hero.is-started {
	--ie-enter: 0s;
}

.ie-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	align-items: center;
	gap: clamp(32px, 5cqi, 72px);
	visibility: hidden;
}

.ie-slide.is-active {
	z-index: 1;
	visibility: visible;
}

.ie-slide.is-leaving {
	z-index: 0;
	visibility: visible;
	transition: visibility 0s 1s;
}

.ie-slide.is-leaving .ie-hero__text {
	opacity: 0;
	transition: opacity 0.3s;
}

.ie-slide__media {
	position: relative;
	overflow: hidden;
	width: min(100%, 500px);
	aspect-ratio: 5 / 6;
	margin-inline-start: auto;
	border-radius: 999px 999px 28px 28px;
}

.ie-slide.is-active .ie-slide__media {
	box-shadow: 0 40px 80px -40px rgb(42 21 48 / 0.6);
}

.ie-slide__media .ie-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ie-slide.is-active .ie-slide__media .ie-photo {
	animation: ie-push-in 1s cubic-bezier(0.7, 0, 0.25, 1) var(--ie-enter) both;
}

.ie-slide.is-leaving .ie-slide__media .ie-photo {
	animation: ie-push-out 1s cubic-bezier(0.7, 0, 0.25, 1) both;
}

@keyframes ie-push-in {
	from {
		transform: translateX(calc(100% * var(--ie-dir)));
	}
}

@keyframes ie-push-out {
	to {
		transform: translateX(calc(-35% * var(--ie-dir)));
		filter: brightness(0.55);
	}
}

.ie-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ie-indigo);
	background: rgb(42 21 48 / 0.08);
	border-radius: 999px;
}

.ie-tag .ie-icon {
	width: 16px;
	height: 16px;
	color: var(--ie-saffron-2);
}

.ie-hero .ie-slide__title {
	margin-block: 20px;
	font-size: clamp(2.6rem, 1.2rem + 3.4cqi, 4.4rem);
	line-height: 1.04;
}

[lang="ar"] .ie-hero .ie-slide__title {
	font-size: clamp(2.8rem, 1.3rem + 4.4cqi, 5rem);
	line-height: 1.3;
}

.ie-mask {
	display: block;
	overflow: hidden;
	padding-block: 0.04em 0.12em;
}

.ie-mask > * {
	display: inline-block;
}

.ie-lead {
	max-width: 35em;
	font-size: 1.08rem;
	color: var(--ie-muted);
}

.ie-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.ie-slide.is-active .ie-tag,
.ie-slide.is-active .ie-lead,
.ie-slide.is-active .ie-hero__actions {
	animation: ie-rise 0.9s var(--ie-ease) both;
}

.ie-slide.is-active .ie-mask > * {
	animation: ie-line 1s var(--ie-ease) both;
}

.ie-slide.is-active .ie-tag {
	animation-delay: calc(var(--ie-enter) + 0.25s);
}

.ie-slide.is-active .ie-mask:nth-child(1) > * {
	animation-delay: calc(var(--ie-enter) + 0.35s);
}

.ie-slide.is-active .ie-mask:nth-child(2) > * {
	animation-delay: calc(var(--ie-enter) + 0.48s);
}

.ie-slide.is-active .ie-lead {
	animation-delay: calc(var(--ie-enter) + 0.62s);
}

.ie-slide.is-active .ie-hero__actions {
	animation-delay: calc(var(--ie-enter) + 0.74s);
}

@keyframes ie-line {
	from {
		transform: translateY(105%);
	}
}

@keyframes ie-rise {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

/* The route chips float over the gate column. */
.ie-hero__floats {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	z-index: 2;
	width: min(calc((100% - clamp(32px, 5cqi, 72px)) * 0.4), 500px);
	pointer-events: none;
	animation: ie-rise 0.9s var(--ie-ease) calc(var(--ie-enter) + 1s) both;
}

.ie-routes {
	position: absolute;
	inset-inline-start: -36px;
	bottom: 40px;
	display: grid;
	gap: 8px;
}

.ie-routes span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	padding: 10px 16px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ie-cream);
	background: var(--ie-indigo);
	border-radius: 999px;
	box-shadow: 0 14px 30px -14px rgb(42 21 48 / 0.7);
	animation: ie-float 6s ease-in-out infinite;
}

.ie-routes span:nth-child(2) {
	margin-inline-start: 26px;
	animation-delay: -2s;
}

.ie-routes span:nth-child(3) {
	color: var(--ie-indigo);
	background: var(--ie-saffron);
	animation-delay: -4s;
}

.ie-routes .ie-icon {
	width: 16px;
	height: 16px;
}

@keyframes ie-float {
	50% {
		transform: translateY(-8px);
	}
}

/* The foot: figures on the start side, the route tabs and arrows on the end. */
.ie-hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	margin-top: clamp(28px, 3.4cqi, 48px);
	padding-top: 22px;
	border-top: 1px solid var(--ie-line);
	animation: ie-rise 0.9s var(--ie-ease) calc(var(--ie-enter) + 0.9s) both;
}

.ie-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 44px;
}

.ie-hero__stats b {
	display: block;
	font-family: var(--ie-serif);
	font-size: 2.3rem;
	font-weight: 400;
	line-height: 1;
	color: var(--ie-indigo);
	font-variant-numeric: tabular-nums;
}

[lang="ar"] .ie-hero__stats b {
	font-family: var(--ie-sans);
	font-weight: 600;
}

.ie-hero__stats span {
	font-size: 0.88rem;
	color: var(--ie-muted);
}

.ie-slider__ui {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ie-slider__tabs {
	display: flex;
	gap: 6px;
	padding: 5px;
	background: var(--ie-white);
	border: 1px solid var(--ie-line);
	border-radius: 999px;
}

.ie-slider__tabs button {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	overflow: hidden;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--ie-muted);
	background: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.3s, background-color 0.3s;
}

.ie-slider__tabs button .ie-icon {
	width: 15px;
	height: 15px;
}

.ie-slider__tabs button[aria-selected="true"] {
	color: var(--ie-cream);
	background: var(--ie-indigo);
}

.ie-slider__tabs button:hover {
	color: var(--ie-indigo);
}

.ie-slider__tabs button[aria-selected="true"]:hover {
	color: var(--ie-cream);
}

/* A saffron thread runs along the chosen tab while the slide plays. */
.ie-slider__tabs i {
	position: absolute;
	inset-inline: 14px;
	bottom: 4px;
	height: 2px;
	background: var(--ie-saffron);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: var(--ie-start, left);
}

.ie-slider__tabs button[aria-selected="true"] i {
	transform: scaleX(1);
}

.ie-hero.is-playing .ie-slider__tabs button[aria-selected="true"] i {
	animation: ie-fill var(--ie-slide-time, 6.5s) linear both;
}

.ie-hero.is-paused .ie-slider__tabs button[aria-selected="true"] i {
	animation-play-state: paused;
}

@keyframes ie-fill {
	from {
		transform: scaleX(0);
	}
}

.ie-slider__arrows {
	display: flex;
	gap: 8px;
}

.ie-slider__arrow {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	color: var(--ie-indigo);
	background: transparent;
	border: 1px solid rgb(42 21 48 / 0.25);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.ie-slider__arrow:hover {
	color: var(--ie-cream);
	background: var(--ie-indigo);
	border-color: var(--ie-indigo);
}

[dir="rtl"] .ie-slider__arrow .ie-icon {
	scale: -1 1;
}

.ie-body:not(.ie-ready) .ie-slider__ui {
	visibility: hidden;
}

/* 6. Range ----------------------------------------------------------------------- */
.ie-section {
	padding-block: clamp(70px, 8cqi, 116px);
}

.ie-section--cream {
	background: var(--ie-cream);
}

.ie-section--indigo {
	color: rgb(251 245 238 / 0.82);
	background: var(--ie-indigo);
}

.ie-section--indigo h2 {
	color: var(--ie-cream);
}

.ie-section--indigo h2 em {
	color: var(--ie-saffron);
}

.ie-section--indigo .ie-kicker {
	color: var(--ie-saffron);
}

.ie-head {
	display: grid;
	gap: 12px;
	max-width: 720px;
	margin-bottom: clamp(26px, 3.5cqi, 44px);
}

.ie-head p:not(.ie-kicker) {
	color: var(--ie-muted);
}

.ie-switch {
	display: inline-flex;
	gap: 4px;
	margin-bottom: 28px;
	padding: 5px;
	background: var(--ie-cream-2);
	border-radius: 999px;
}

.ie-switch button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 22px;
	font-weight: 700;
	color: var(--ie-muted);
	background: transparent;
	border: 0;
	border-radius: 999px;
	transition: background-color 0.25s, color 0.25s;
}

.ie-switch button[aria-selected="true"] {
	color: var(--ie-cream);
	background: var(--ie-indigo);
}

.ie-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(14px, 2cqi, 24px);
}

.ie-cards[hidden] {
	display: none;
}

.ie-cards--import {
	grid-template-columns: repeat(4, 1fr);
}

.ie-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ie-white);
	border: 1px solid var(--ie-line);
	border-radius: 22px;
	transition: transform 0.4s var(--ie-ease), box-shadow 0.4s var(--ie-ease);
	animation: ie-in 0.5s var(--ie-ease) both;
	animation-delay: calc(var(--ie-i, 0) * 60ms);
}

.ie-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 30px 60px -36px rgb(42 21 48 / 0.5);
}

.ie-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.ie-card__media .ie-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ie-ease);
}

.ie-card:hover .ie-photo {
	transform: scale(1.06);
}

.ie-hs {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	padding: 4px 10px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ie-cream);
	background: rgb(42 21 48 / 0.85);
	border-radius: 999px;
}

.ie-card__body {
	display: grid;
	gap: 12px;
	padding: 20px 22px 22px;
}

.ie-card h3 {
	font-size: 1.5rem;
}

.ie-card dl {
	display: grid;
	gap: 6px;
	font-size: 0.88rem;
}

.ie-card dl div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 6px;
	border-bottom: 1px dashed var(--ie-line);
}

.ie-card dt {
	color: var(--ie-muted);
}

.ie-card dd {
	font-weight: 700;
	text-align: end;
}

.ie-card__season {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	padding: 4px 12px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ie-muted);
	background: var(--ie-cream-2);
	border-radius: 999px;
}

.ie-card__season::before {
	content: "";
	width: 8px;
	height: 8px;
	background: currentColor;
	border-radius: 50%;
}

.ie-card__season.is-on {
	color: #1c7a3e;
	background: #def4e5;
}

@keyframes ie-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* 7. Season calendar ----------------------------------------------------------- */
.ie-calendar {
	overflow-x: auto;
	padding: clamp(14px, 2cqi, 24px);
	background: var(--ie-white);
	border-radius: 24px;
}

.ie-calendar table {
	width: 100%;
	min-width: 720px;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 4px;
}

.ie-calendar th {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ie-muted);
}

.ie-calendar thead th {
	padding-bottom: 6px;
}

.ie-calendar thead th:first-child {
	width: 230px;
}

.ie-calendar thead th.is-now {
	color: var(--ie-indigo);
}

.ie-calendar tbody th {
	padding-inline-end: 12px;
	font-size: 0.92rem;
	text-align: start;
	color: var(--ie-text);
	white-space: nowrap;
}

.ie-calendar td {
	height: 34px;
	background: var(--ie-cream);
	border-radius: 8px;
	transition: transform 0.2s;
}

.ie-calendar td.is-in {
	background: linear-gradient(135deg, var(--ie-saffron), #f7c35b);
}

.ie-calendar td.is-now {
	box-shadow: inset 0 0 0 2px var(--ie-indigo);
}

.ie-calendar tr:hover td.is-in {
	transform: scaleY(1.15);
}

/* 8. Incoterms ------------------------------------------------------------------ */
.ie-terms {
	display: grid;
	gap: 24px;
	padding: clamp(20px, 3cqi, 36px);
	background: var(--ie-cream);
	border-radius: 28px;
}

.ie-terms__pick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ie-terms__pick button {
	min-width: 76px;
	min-height: 46px;
	padding: 0 16px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--ie-indigo);
	background: var(--ie-white);
	border: 2px solid var(--ie-line);
	border-radius: 14px;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.ie-terms__pick button[aria-pressed="true"] {
	color: var(--ie-cream);
	background: var(--ie-indigo);
	border-color: var(--ie-indigo);
}

.ie-chain {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

.ie-chain li {
	position: relative;
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 8px;
	padding: 18px 8px 16px;
	text-align: center;
	background: var(--ie-white);
	border-radius: 18px;
	border-top: 5px solid var(--ie-indigo-3);
	transition: border-color 0.35s, background-color 0.35s;
}

.ie-chain li.is-seller {
	border-top-color: var(--ie-saffron);
	background: #fff8e8;
}

.ie-chain__dot {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	font-weight: 800;
	color: var(--ie-cream);
	background: var(--ie-indigo-3);
	border-radius: 50%;
	transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ie-ease);
}

.ie-chain li.is-seller .ie-chain__dot {
	color: var(--ie-indigo);
	background: var(--ie-saffron);
	transform: scale(1.08);
}

.ie-chain b {
	font-size: 0.86rem;
	line-height: 1.35;
}

.ie-chain small {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ie-muted);
}

.ie-terms__text {
	font-size: 1.05rem;
}

.ie-terms__text b {
	font-family: var(--ie-serif);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--ie-saffron-2);
}

.ie-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ie-muted);
}

.ie-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ie-legend span::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 4px;
}

.ie-legend__s::before {
	background: var(--ie-saffron);
}

.ie-legend__b::before {
	background: var(--ie-indigo-3);
}

/* 9. Markets & band ------------------------------------------------------------- */
.ie-markets {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: clamp(30px, 6cqi, 90px);
	align-items: center;
}

.ie-markets > div {
	display: grid;
	gap: 16px;
}

.ie-bars {
	display: grid;
	gap: 14px;
	margin-top: 10px;
}

.ie-bars li {
	display: grid;
	grid-template-columns: 220px 1fr 48px;
	align-items: center;
	gap: 14px;
	font-weight: 600;
}

.ie-bars i {
	height: 12px;
	overflow: hidden;
	background: rgb(251 245 238 / 0.1);
	border-radius: 99px;
}

.ie-bars i b {
	display: block;
	width: var(--ie-w);
	height: 100%;
	background: linear-gradient(90deg, var(--ie-saffron), #ffd27a);
	border-radius: inherit;
	transition: width 1.1s var(--ie-ease);
}

[dir="rtl"] .ie-bars i b {
	background: linear-gradient(270deg, var(--ie-saffron), #ffd27a);
}

.ie-ready [data-ie-reveal]:not(.is-in) .ie-bars i b {
	width: 0;
}

.ie-bars em {
	font-style: normal;
	font-weight: 700;
	text-align: end;
	color: var(--ie-saffron);
}

.ie-markets__media {
	overflow: hidden;
	border-radius: 28px 28px 999px 999px;
}

.ie-markets__media .ie-photo {
	width: 100%;
	aspect-ratio: 10 / 11;
	object-fit: cover;
}

.ie-band {
	position: relative;
	display: grid;
	place-items: center;
	min-height: clamp(220px, 24cqi, 320px);
	overflow: hidden;
	background: var(--ie-indigo);
}

.ie-band .ie-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.4;
}

.ie-band ul {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	padding: 20px;
}

.ie-band li {
	padding: 12px 22px;
	font-weight: 800;
	letter-spacing: 0.08em;
	unicode-bidi: plaintext;
	color: var(--ie-cream);
	background: rgb(42 21 48 / 0.7);
	border: 1px solid rgb(251 245 238 / 0.35);
	border-radius: 999px;
	backdrop-filter: blur(6px);
}

/* 10. RFQ ---------------------------------------------------------------------- */
.ie-rfq {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(28px, 5cqi, 80px);
	align-items: center;
}

.ie-rfq > div {
	display: grid;
	gap: 16px;
}

.ie-perks {
	display: grid;
	gap: 12px;
}

.ie-perks li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
}

.ie-perks .ie-icon {
	width: 38px;
	height: 38px;
	padding: 9px;
	color: var(--ie-saffron-2);
	background: var(--ie-white);
	border-radius: 50%;
}

.ie-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding: clamp(20px, 3cqi, 32px);
	background: var(--ie-white);
	border-radius: 26px;
	box-shadow: 0 30px 60px -40px rgb(42 21 48 / 0.45);
}

.ie-field {
	display: grid;
	gap: 6px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--ie-muted);
}

.ie-field input,
.ie-field select {
	min-height: 50px;
	padding: 0 14px;
	font-weight: 500;
	color: var(--ie-text);
	background: var(--ie-cream);
	border: 2px solid transparent;
	border-radius: 14px;
	transition: border-color 0.2s;
}

.ie-field input:focus,
.ie-field select:focus {
	border-color: var(--ie-saffron);
	outline: none;
}

.ie-field input[aria-invalid="true"] {
	border-color: #c0392b;
}

.ie-field--full,
.ie-form .ie-btn,
.ie-form__error,
.ie-form__ok {
	grid-column: 1 / -1;
}

.ie-form__error {
	font-size: 0.9rem;
	font-weight: 700;
	color: #c0392b;
}

.ie-form__ok {
	padding: 14px 16px;
	font-size: 0.92rem;
	background: #fff3d6;
	border-radius: 14px;
}

/* 11. Footer -------------------------------------------------------------------- */
.ie-footer {
	padding-block: 40px 26px;
	color: rgb(251 245 238 / 0.7);
	background: #15143a;
}

.ie-footer__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.ie-footer .ie-logo b {
	color: var(--ie-cream);
}

.ie-footer .ie-logo small {
	color: rgb(251 245 238 / 0.55);
}

.ie-footer__bar {
	flex: 1 0 100%;
	padding-top: 18px;
	font-size: 0.82rem;
	border-top: 1px solid rgb(251 245 238 / 0.12);
}

/* 12. Motion: intro, progress line, header, reveals ------------------------- */
/* The intro: a dotted trade route arcs from port to port, NILE GATE appears
   under it, then the aubergine panel parts up and down like a gate opening.
   Pure CSS: it ends even without the script. */
.ie-intro {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	pointer-events: none;
	animation: ie-hide 0s linear 2.15s both;
}

.ie-intro::before,
.ie-intro::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	height: 50.5%;
	background: var(--ie-indigo);
	animation: ie-part 0.8s cubic-bezier(0.7, 0, 0.2, 1) 1.35s both;
}

.ie-intro::before {
	top: 0;
	--ie-to: -100%;
}

.ie-intro::after {
	bottom: 0;
	--ie-to: 100%;
}

.ie-intro__in {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	gap: 6px;
	color: var(--ie-cream);
	animation: ie-fade 0.3s ease-in 1.3s both;
}

.ie-intro__route {
	width: 220px;
	height: 74px;
	margin-bottom: 4px;
	overflow: visible;
}

.ie-intro__route path {
	fill: none;
	stroke: var(--ie-saffron);
	stroke-width: 2.5;
	stroke-dasharray: 2 7;
	stroke-linecap: round;
	clip-path: inset(0 100% 0 0);
	animation: ie-route 0.9s ease-out 0.15s both;
}

[dir="rtl"] .ie-intro__route path {
	clip-path: inset(0 0 0 100%);
}

.ie-intro__route circle {
	fill: var(--ie-saffron);
	animation: ie-dot 0.4s ease-out both;
}

.ie-intro__route circle:last-child {
	animation-delay: 0.9s;
}

.ie-intro b {
	font-family: var(--ie-serif);
	font-size: 2.6rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	line-height: 1.1;
	animation: ie-rise 0.6s var(--ie-ease) 0.6s both;
}

[lang="ar"] .ie-intro b {
	letter-spacing: 0;
}

.ie-intro small {
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	opacity: 0.7;
	animation: ie-rise 0.6s var(--ie-ease) 0.75s both;
}

@keyframes ie-route {
	to {
		clip-path: inset(0);
	}
}

@keyframes ie-dot {
	from {
		opacity: 0;
		transform: scale(0);
	}
}

@keyframes ie-part {
	to {
		transform: translateY(var(--ie-to));
	}
}

@keyframes ie-fade {
	to {
		opacity: 0;
	}
}

@keyframes ie-hide {
	to {
		visibility: hidden;
	}
}

/* Reading progress, where the browser can tie an animation to scrolling. */
.ie-progress {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 60;
	height: 3px;
	background: var(--ie-saffron);
	transform: scaleX(0);
	transform-origin: var(--ie-start, left);
}

@supports (animation-timeline: scroll()) {
	.ie-progress {
		animation: ie-progress linear both;
		animation-timeline: scroll(root);
	}
}

@keyframes ie-progress {
	to {
		transform: scaleX(1);
	}
}

.ie-header {
	animation: ie-down 0.8s var(--ie-ease) 1.6s both;
}

@keyframes ie-down {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}
}

/* Reveals: lists one after another, photos settle from a slight zoom. */
.ie-ready [data-ie-reveal] {
	opacity: 0;
	transform: translateY(36px);
	transition: opacity 0.9s var(--ie-ease), transform 0.9s var(--ie-ease);
	transition-delay: calc(var(--ie-i, 0) * 90ms);
}

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

.ie-ready [data-ie-reveal] .ie-photo {
	transition: transform 1.6s var(--ie-ease);
}

.ie-ready [data-ie-reveal]:not(.is-in) .ie-photo {
	transform: scale(1.14);
}

.ie-body main {
	overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
	.ie-body *,
	.ie-body *::before,
	.ie-body *::after {
		animation: none !important;
		transition: none !important;
	}

	.ie-intro {
		display: none;
	}

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

	.ie-ready [data-ie-reveal]:not(.is-in) .ie-photo {
		transform: none;
	}
}

/* 13. Narrower widths ------------------------------------------------------------ */
@container demo (max-width: 1060px) {
	.ie-header__cta {
		display: none;
	}

	.ie-cards,
	.ie-cards--import {
		grid-template-columns: repeat(2, 1fr);
	}

	.ie-chain {
		grid-template-columns: repeat(4, 1fr);
	}
}

@container demo (max-width: 900px) {
	.ie-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		flex-direction: column;
		gap: 0;
		padding: 8px 24px 20px;
		background: var(--ie-cream);
		border-bottom: 1px solid var(--ie-line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
	}

	.ie-nav.is-open {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.ie-nav a {
		padding: 14px 0;
		border-bottom: 1px solid var(--ie-line);
	}

	.ie-tools {
		margin-inline-start: auto;
	}

	.ie-burger {
		display: grid;
	}

	.ie-slide,
	.ie-markets,
	.ie-rfq {
		grid-template-columns: 1fr;
	}

	/* Photo first, then the words; the route chips ride on the gate. */
	.ie-slide__media {
		grid-row: 1;
		width: min(100%, 420px);
		margin-inline: auto;
	}

	.ie-hero__floats {
		inset-inline: 0;
		bottom: auto;
		width: min(100%, 420px);
		aspect-ratio: 5 / 6;
		margin-inline: auto;
	}

	.ie-markets__media {
		max-width: 460px;
		margin-inline: auto;
	}

	.ie-routes {
		inset-inline-start: 0;
	}
}

@container demo (max-width: 560px) {
	.ie-lang {
		padding: 8px 10px;
		font-size: 0;
		gap: 0;
	}

	.ie-lang .ie-icon {
		width: 20px;
		height: 20px;
	}

	.ie-logo small {
		display: none;
	}

	.ie-cards,
	.ie-cards--import,
	.ie-form {
		grid-template-columns: 1fr;
	}

	.ie-chain {
		grid-template-columns: 1fr 1fr;
	}

	.ie-bars li {
		grid-template-columns: 1fr 48px;
	}

	.ie-bars i {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.ie-switch button {
		padding: 0 14px;
	}

	.ie-hero__foot {
		display: grid;
	}

	.ie-slider__ui {
		justify-content: space-between;
	}

	/* Only the playing slide keeps its name on a phone. */
	.ie-slider__tabs button:not([aria-selected="true"]) span {
		display: none;
	}

	.ie-slider__tabs button {
		white-space: nowrap;
	}

	.ie-hero__actions .ie-btn {
		flex: 1 1 auto;
	}
}

/* Arabic weights: 400–600 only: every bold part is 600 here, and the browser never
   fakes a heavier weight. (Generated from the rules above; keep it last.) */
[lang="ar"] .ie-body {
	font-synthesis: none;
}

:where([lang="ar"] .ie-body) :where(b, strong, h1, h2, h3, h4, h5, h6, th, optgroup) {
	font-weight: 600;
}

[lang="ar"] .ie-body :is(.ie-kicker, .ie-btn, .ie-lang, .ie-switch button, .ie-hs, .ie-card dd),
[lang="ar"] .ie-body :is(.ie-card__season, .ie-calendar th, .ie-terms__pick button, .ie-chain__dot, .ie-chain small, .ie-bars em),
[lang="ar"] .ie-body :is(.ie-band li, .ie-field, .ie-form__error) {
	font-weight: 600;
}
