/* Emaar ETC — main stylesheet
   Dark glass system. Arabic-first (RTL), mobile-first.
   No third-party assets. No inline styles (strict CSP). */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg-0: #050f0a;
  --bg-1: #0a1d14;
  --bg-2: #10291d;

  --ink: #f3f6f0;
  --ink-2: rgba(243, 246, 240, 0.76);
  --ink-3: rgba(243, 246, 240, 0.54);

  --leaf: #7bd88a;
  --leaf-deep: #2f8f52;
  --gold: #e6c77e;
  --gold-deep: #b8913f;
  --carrot: #f39545;
  --tomato: #e4573f;

  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --glass-solid: rgba(16, 41, 29, 0.92);
  --stroke: rgba(255, 255, 255, 0.13);
  --stroke-strong: rgba(255, 255, 255, 0.24);
  --blur: 22px;

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 30px;
  --radius-pill: 999px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), 0 2px 0 0 rgba(255, 255, 255, 0.05) inset;

  --font-body: "IBM Plex Sans Arabic", "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --font-display: "Alexandria", "IBM Plex Sans Arabic", "SF Arabic", "Segoe UI", "Noto Kufi Arabic", "Geeza Pro", Tahoma, system-ui, sans-serif;
  --font-latin: "IBM Plex Sans Arabic", "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(72px, 10vw, 132px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(230, 199, 126, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; inset-inline-start: 16px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--gold); color: #1a1405; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

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

/* ---------- Atmosphere (fixed backdrop the glass refracts) ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #12331f 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
}
.aurora__orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.6; will-change: transform;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora__orb--leaf  { width: 54vmax; height: 54vmax; inset-inline-end: -14vmax; top: -18vmax; background: radial-gradient(circle, #2fa65e 0%, transparent 68%); }
.aurora__orb--gold  { width: 38vmax; height: 38vmax; inset-inline-start: -12vmax; top: 22vh; background: radial-gradient(circle, #c9a04a 0%, transparent 68%); opacity: 0.34; animation-duration: 32s; animation-delay: -8s; }
.aurora__orb--carrot{ width: 34vmax; height: 34vmax; inset-inline-end: 8vmax; bottom: -14vmax; background: radial-gradient(circle, #e2762b 0%, transparent 68%); opacity: 0.3; animation-duration: 38s; animation-delay: -15s; }
.aurora__orb--mint  { width: 26vmax; height: 26vmax; inset-inline-start: 26vmax; bottom: 12vh; background: radial-gradient(circle, #4fc3a1 0%, transparent 68%); opacity: 0.22; animation-duration: 30s; animation-delay: -4s; }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-4vmax, 3vmax, 0) scale(1.08); }
  100% { transform: translate3d(3vmax, -2vmax, 0) scale(0.96); }
}

/* fine grain, hides gradient banding and gives the glass some tooth */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; letter-spacing: 0; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5.3vw, 4.1rem); }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.3rem); font-weight: 600; line-height: 1.5; }
p  { text-wrap: pretty; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 46ch; }
.muted { color: var(--ink-2); }
.latin { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; letter-spacing: 0.02em; }
.num { font-family: var(--font-latin); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

.shine {
  background: linear-gradient(100deg, #f5e3b0 0%, var(--gold) 38%, #9fe0a6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.86rem; font-weight: 600; color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7;
}

.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { margin-top: 16px; color: var(--ink-2); font-size: 1.08rem; }

/* ---------- Glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(155deg, var(--glass-2) 0%, var(--glass) 46%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
}
/* lit top edge */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(230, 199, 126, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* pointer-follow glow, coordinates set from JS */
.glass--glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(230, 199, 126, 0.16), transparent 62%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.glass--glow:hover::after { opacity: 1; }

/* browsers without backdrop-filter, or users who asked for less transparency */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1rem; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary {
  color: #1c1503;
  background: linear-gradient(135deg, #f6e4ae 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: 0 14px 34px -14px rgba(230, 199, 126, 0.75), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(230, 199, 126, 0.9), 0 1px 0 rgba(255, 255, 255, 0.6) inset; }
.btn--ghost {
  background: var(--glass); border-color: var(--stroke-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--ghost:hover { background: var(--glass-2); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-block: 14px;
  transition: padding 0.3s var(--ease);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 10px; padding-inline-start: 14px;
  border-radius: var(--radius-pill);
}
.header.is-scrolled { padding-block: 8px; }
.header.is-scrolled .header__bar { background: rgba(8, 24, 16, 0.72); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover;
  border: 1px solid var(--stroke-strong);
}
.brand__text { display: grid; line-height: 1.25; min-width: 0; }
.brand__ar { font-family: var(--font-display); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.brand__en { font-family: var(--font-latin); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; white-space: nowrap; }

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px;
  border-radius: var(--radius-pill); font-size: 0.95rem; color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.08); }

.header__cta { display: none; }

.menu-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 50%; border: 1px solid var(--stroke-strong); background: var(--glass);
}
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.drawer {
  position: fixed; inset-inline: var(--gutter); top: 84px; z-index: 49;
  padding: 18px; border-radius: var(--radius-m);
  background: rgba(8, 24, 16, 0.9);
  opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
}
.drawer.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.drawer a:not(.btn) {
  display: flex; align-items: center; min-height: 52px; padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 1.08rem;
}
.drawer .btn { width: 100%; margin-top: 16px; }

@media (min-width: 980px) {
  .nav, .header__cta { display: block; }
  .menu-btn, .drawer { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(128px, 17vw, 190px); padding-bottom: clamp(56px, 8vw, 100px); }
.hero__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero__copy h1 { margin-bottom: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 0.88rem; color: var(--ink-2);
  background: var(--glass); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.chip svg { width: 16px; height: 16px; color: var(--leaf); flex: none; }

/* hero visual: emblem in a glass disc, three floating category cards */
.stage { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.stage__ring {
  position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(230, 199, 126, 0) 0deg, rgba(230, 199, 126, 0.75) 70deg, rgba(123, 216, 138, 0.55) 150deg, rgba(230, 199, 126, 0) 230deg, rgba(243, 149, 69, 0.5) 300deg, rgba(230, 199, 126, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: spin 28s linear infinite;
}
.stage__halo {
  position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 216, 138, 0.35), transparent 70%);
  filter: blur(40px);
}
.stage__disc {
  position: absolute; inset: 15%; border-radius: 50%; padding: 4%;
  display: grid; place-items: center;
}
.stage__disc.glass { border-radius: 50%; }
.stage__disc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.8); }

.float {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px; white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}
.float__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--stroke);
}
.float__icon svg { width: 20px; height: 20px; }
.float strong { display: block; font-size: 0.95rem; line-height: 1.4; }
.float small { display: block; font-size: 0.76rem; color: var(--ink-3); line-height: 1.4; }
.float--a { top: 3%; inset-inline-start: -2%; }
.float--a .float__icon { color: var(--leaf); }
.float--b { top: 38%; inset-inline-end: -13%; animation-delay: -2.4s; }
.float--b .float__icon { color: var(--gold); }
.float--c { bottom: 1%; inset-inline-start: 4%; animation-delay: -4.6s; }
.float--c .float__icon { color: var(--carrot); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 560px) {
  .float { padding: 9px 12px; gap: 9px; }
  .float__icon { width: 34px; height: 34px; }
  .float small { display: none; }
  .float--a { inset-inline-start: 0; }
  .float--b { inset-inline-end: 0; }
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.08fr 0.92fr; }
}

/* ---------- ETC strip ---------- */
.etc { display: grid; gap: 14px; }
.etc__item { display: flex; align-items: center; gap: 18px; padding: 20px 24px; }
.etc__letter {
  font-family: var(--font-latin); font-weight: 700; font-size: 2.6rem; line-height: 1;
  width: 64px; height: 64px; display: grid; place-items: center; flex: none;
  border-radius: 18px; background: rgba(230, 199, 126, 0.1); border: 1px solid rgba(230, 199, 126, 0.3);
  color: var(--gold);
}
.etc__item b { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; }
.etc__item span { display: block; font-size: 0.82rem; color: var(--ink-3); }
@media (min-width: 820px) { .etc { grid-template-columns: repeat(3, 1fr); } }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__body p + p { margin-top: 18px; }
.about__body p { color: var(--ink-2); font-size: 1.08rem; }
.about__body p:first-of-type { color: var(--ink); font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.8; }
.proof { padding: clamp(22px, 3vw, 32px); }
.proof h3 { margin-bottom: 18px; }
.proof__list li { display: flex; gap: 14px; padding-block: 14px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.proof__list li:first-child { border-top: 0; padding-top: 0; }
.proof__list svg { width: 22px; height: 22px; flex: none; margin-top: 5px; color: var(--leaf); }
.proof__list b { display: block; line-height: 1.5; }
.proof__list span { display: block; color: var(--ink-2); font-size: 0.94rem; line-height: 1.7; }
@media (min-width: 900px) { .about { grid-template-columns: 1.1fr 0.9fr; } }

/* ---------- Supply (bento) ---------- */
.bento { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; overflow: hidden; }
.card__body { position: relative; padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__media { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; order: -1; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
/* the photo fades into the glass instead of ending on a hard edge */
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 24, 16, 0) 45%, rgba(8, 24, 16, 0.78) 100%);
}
.card__icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--stroke);
}
.card__icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); font-size: 0.99rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.tag {
  font-size: 0.8rem; padding: 4px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--ink-2);
}
.card--leaf   .card__icon { color: var(--leaf); }
.card--gold   .card__icon { color: var(--gold); }
.card--carrot .card__icon { color: var(--carrot); }
.card--tomato .card__icon { color: #f08a78; }
/* soft colour wash inside each card */
.card__wash {
  position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%;
  inset-inline-end: -90px; top: -110px; filter: blur(50px); opacity: 0.4;
}
.card--leaf   .card__wash { background: var(--leaf-deep); }
.card--gold   .card__wash { background: var(--gold-deep); }
.card--carrot .card__wash { background: var(--carrot); opacity: 0.28; }
.card--tomato .card__wash { background: var(--tomato); opacity: 0.26; }

@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > :nth-child(1) { grid-column: span 4; }
  .bento > :nth-child(2) { grid-column: span 2; }
  .bento > :nth-child(3) { grid-column: span 2; }
  .bento > :nth-child(4) { grid-column: span 4; }
  /* wide cards: text beside the photo */
  .card--wide { flex-direction: row; min-height: 340px; }
  .card--wide .card__body { flex: 1 1 52%; justify-content: center; }
  .card--wide .card__media { flex: 1 1 48%; aspect-ratio: auto; order: 0; }
  .card--wide .card__media::after { background: linear-gradient(to left, rgba(8, 24, 16, 0.72) 0%, rgba(8, 24, 16, 0) 42%); }
  .bento > :nth-child(4).card--wide { flex-direction: row-reverse; }
  .bento > :nth-child(4).card--wide .card__media::after { background: linear-gradient(to right, rgba(8, 24, 16, 0.72) 0%, rgba(8, 24, 16, 0) 42%); }
}

/* ---------- Sectors ---------- */
.sectors { display: grid; gap: 14px; }
@media (min-width: 620px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sectors { grid-template-columns: repeat(4, 1fr); } }
.sector { padding: 24px; display: grid; gap: 10px; align-content: start; }
.sector svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 6px; }
.sector p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step { padding: 24px; position: relative; counter-increment: step; }
.step::after {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-latin); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.08em;
  position: absolute; top: 22px; inset-inline-end: 22px; color: var(--ink-3);
}
.step svg { width: 28px; height: 28px; color: var(--leaf); margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } .step { min-height: 250px; } .step:last-child { grid-column: auto; } }

/* ---------- Work ---------- */
.work { display: grid; gap: 16px; }
.work__item { padding: clamp(24px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.work__item .label { font-size: 0.8rem; color: var(--gold); font-weight: 600; }
.work__item p { color: var(--ink-2); font-size: 0.98rem; }
@media (min-width: 860px) { .work { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Legal data ---------- */
.legal { padding: clamp(24px, 4vw, 44px); display: grid; gap: clamp(24px, 4vw, 48px); }
.legal dl { display: grid; gap: 0; }
.legal dl > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 14px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.legal dl > div:first-child { border-top: 0; }
.legal dt { color: var(--ink-3); font-size: 0.94rem; }
.legal dd { font-weight: 600; text-align: end; }
@media (min-width: 860px) { .legal { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 16px; }
.contact__info { padding: clamp(24px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.contact__row { display: flex; gap: 14px; align-items: flex-start; }
.contact__row svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 6px; }
.contact__row b { display: block; font-size: 0.86rem; color: var(--ink-3); font-weight: 500; }
.contact__row a, .contact__row span { font-size: 1.05rem; }
.contact__row a:hover { color: var(--gold); }

.form { padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; color: var(--ink-2); }
.field label i { font-style: normal; color: var(--carrot); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border-radius: var(--radius-s); border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.26);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23e6c77e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; padding-inline-end: 44px; }
.field select option { background: #10291d; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(0, 0, 0, 0.36);
  box-shadow: 0 0 0 4px rgba(230, 199, 126, 0.16);
}
.field [dir="ltr"] { text-align: start; }
.trap { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form__note { font-size: 0.84rem; color: var(--ink-3); max-width: 44ch; }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form__status { font-size: 0.95rem; padding: 12px 16px; border-radius: var(--radius-s); }
.form__status.is-ok  { background: rgba(123, 216, 138, 0.12); border: 1px solid rgba(123, 216, 138, 0.4); color: #c9f2cf; }
.form__status.is-err { background: rgba(228, 87, 63, 0.12); border: 1px solid rgba(228, 87, 63, 0.45); color: #ffd0c8; }

@media (min-width: 940px) { .contact { grid-template-columns: 0.8fr 1.2fr; } }

/* ---------- CTA band ---------- */
.band { padding: clamp(32px, 5vw, 60px); display: grid; gap: 24px; align-items: center; overflow: hidden; }
.band h2 { font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.band p { color: var(--ink-2); margin-top: 10px; }
@media (min-width: 860px) { .band { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.footer { padding-block: 56px 36px; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: var(--section); background: rgba(3, 10, 6, 0.5); }
.footer__grid { display: grid; gap: 36px; }
.footer h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 14px; color: var(--ink); }
.footer li + li { margin-top: 8px; }
.footer a, .footer p, .footer li { color: var(--ink-2); font-size: 0.95rem; }
.footer a:hover { color: var(--gold); }
.footer__brand p { margin-top: 16px; max-width: 38ch; }
.footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.86rem; color: var(--ink-3);
}
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Document pages (privacy, terms, 404) ---------- */
.doc { padding-top: clamp(128px, 16vw, 170px); }
.doc__panel { padding: clamp(24px, 5vw, 60px); max-width: 860px; margin-inline: auto; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 10px; }
.doc h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-top: 40px; margin-bottom: 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 8px; margin-top: 10px; }
.doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.doc .stamp { color: var(--ink-3); font-size: 0.9rem; margin-bottom: 26px; }
.notfound { min-height: 78vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-latin); font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; }

/* ---------- Hero entrance: pure CSS, runs with or without scripts ---------- */
.rise { animation: rise 0.9s var(--ease) both; }
.rise[data-delay="1"] { animation-delay: 0.08s; }
.rise[data-delay="2"] { animation-delay: 0.16s; }
.rise[data-delay="3"] { animation-delay: 0.24s; }
.rise[data-delay="4"] { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .aurora, .grain, .header, .drawer, .form, .band { display: none !important; }
  body { background: #fff; color: #000; }
  .glass { background: none; border: 1px solid #999; box-shadow: none; }
}
