/* Khanzada Metals & Alloys LLC
   Fonts are self-hosted (SIL Open Font License, see /assets/fonts/OFL-*.txt).
   No third-party requests are made by this stylesheet. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-100-900.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plexmono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plexarabic-arabic-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("../fonts/plexarabic-arabic-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #111315;
  --ink-2: #1a1d21;
  --ink-3: #24282d;
  --on-ink: #ece8df;
  --on-ink-muted: #a9aeb4;
  --gold: #d4af5a;
  --gold-soft: #e7cf95;
  --paper: #f1eee7;
  --paper-2: #e6e1d6;
  --text: #16181b;
  --text-muted: #50565d;
  --gold-deep: #6e5210;
  --rule-dark: rgba(236, 232, 223, 0.14);
  --rule-light: rgba(22, 24, 27, 0.16);
  --danger: #a3261b;
  --danger-on-ink: #ff9b8f;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-ar: "Plex Arabic", "Segoe UI", Tahoma, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

[lang="ar"] { font-family: var(--f-ar); }

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

/* Focus: always visible, colour depends on surface */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.surface-light :focus-visible { outline-color: var(--text); }

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.mono {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(17, 19, 21, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-dark);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 1rem;
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--on-ink-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 2px;
}
.nav__list a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--on-ink);
  border-radius: 2px;
}
.nav__list a:hover { color: var(--gold); }
.nav__list a[aria-current="true"] { color: var(--gold); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 1px solid var(--rule-dark);
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-toggle__bars { width: 18px; height: 10px; position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav__panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule-dark);
    padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav__panel.is-open { display: block; }
  .nav__list { flex-direction: column; }
  .nav__list a {
    padding: 14px 0;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--rule-dark);
  }
  .nav__panel .btn { margin-top: 20px; width: 100%; }
}
@media (min-width: 900px) {
  .nav__panel { display: flex; align-items: center; gap: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 0;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--line { border-color: var(--rule-dark); color: var(--on-ink); background: transparent; }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-3); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 0.9375rem; }
.btn:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(32px, 7vh, 88px));
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--rule-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  flex: 1;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.5fr 1fr; gap: 56px; }
}
.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--on-ink-muted);
  margin: 0 0 22px;
}
.hero__kicker .dot {
  width: 8px; height: 8px; background: var(--gold); display: inline-block;
}
.hero h1 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero__lede {
  max-width: 36rem;
  color: var(--on-ink-muted);
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  margin: 0 0 32px;
}
.hero__lede strong { color: var(--on-ink); font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ar {
  margin: 28px 0 0;
  text-align: left;
  color: var(--on-ink-muted);
  font-size: 1.0625rem;
}

/* Element tile */
.element-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1.1;
  perspective: 1200px;
}
.element {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 90, 0.5);
  background:
    linear-gradient(145deg, rgba(212, 175, 90, 0.09), rgba(212, 175, 90, 0) 55%),
    var(--ink-2);
  padding: clamp(18px, 4vw, 30px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform-style: preserve-3d;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.element__top { display: flex; justify-content: space-between; align-items: flex-start; }
.element__num {
  font-family: var(--f-mono);
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 500;
  color: var(--gold);
}
.element__cat { color: var(--on-ink-muted); text-align: right; }
.element__sym {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(7rem, 22vw, 11rem);
  line-height: 1;
  letter-spacing: -0.03em;
  align-self: center;
  color: var(--on-ink);
}
.element__foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.element__name {
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.8vw, 1.625rem);
}
.element__mass { font-family: var(--f-mono); color: var(--on-ink-muted); font-size: 0.9375rem; }
.element__note { color: var(--on-ink-muted); margin-top: 4px; }
.element-stage__shadow {
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--rule-dark);
  z-index: -1;
}
.element.is-flipping { animation: tileFlip 0.9s var(--ease); }
@keyframes tileFlip {
  0% { transform: rotateX(0); }
  45% { transform: rotateX(88deg); opacity: 0.4; }
  55% { transform: rotateX(-88deg); opacity: 0.4; }
  100% { transform: rotateX(0); }
}
.element-legend {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.element-legend button {
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--rule-dark);
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--on-ink-muted);
}
.element-legend button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.element-legend button:hover { color: var(--on-ink); }

/* Ticket strip */
.ticket {
  margin-top: clamp(40px, 7vh, 80px);
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) {
  .ticket { grid-template-columns: repeat(4, 1fr); }
}
.ticket > div {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--rule-dark);
}
.ticket > div:nth-child(odd) { padding-right: 12px; }
@media (min-width: 900px) {
  .ticket > div { border-bottom: 0; padding-right: 16px; }
  .ticket > div + div { border-left: 1px solid var(--rule-dark); padding-left: 20px; }
}
.ticket dt { color: var(--on-ink-muted); margin-bottom: 4px; }
.ticket dd { margin: 0; font-weight: 600; font-size: 1rem; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.surface-light { background: var(--paper); color: var(--text); }
.surface-ink-2 { background: var(--ink-2); }

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
}
.section-head__label { display: flex; gap: 10px; align-items: baseline; color: var(--on-ink-muted); }
.surface-light .section-head__label { color: var(--text-muted); }
.section-head__label b { color: var(--gold); font-weight: 500; }
.surface-light .section-head__label b { color: var(--gold-deep); }
.section-head h2 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.section-head p { margin: 0; max-width: 40rem; color: var(--on-ink-muted); font-size: 1.125rem; }
.surface-light .section-head p { color: var(--text-muted); }

/* ---------- Materials: pinned horizontal scroll ---------- */
.materials { padding-bottom: 0; }
.hscroll { position: relative; }
.hscroll__pin { position: relative; }
.hscroll__track {
  display: flex;
  gap: 20px;
  padding: 4px var(--gutter) 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  -webkit-overflow-scrolling: touch;
}
.hscroll__track:focus-visible { outline-offset: -3px; }
.mat {
  flex: 0 0 min(84vw, 380px);
  scroll-snap-align: start;
  border: 1px solid var(--rule-dark);
  background: var(--ink);
  display: flex;
  flex-direction: column;
}
.mat__art {
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--rule-dark);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 60%, rgba(212, 175, 90, 0.10), transparent 60%),
    var(--ink-2);
  overflow: hidden;
}
.mat__art svg { width: 78%; height: auto; transition: transform 0.8s var(--ease); }
.mat:hover .mat__art svg { transform: translateY(-4px) scale(1.02); }
.mat__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mat__idx { color: var(--gold); }
.mat h3 {
  font-family: var(--f-display);
  font-stretch: 110%;
  font-weight: 750;
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0;
}
.mat p { margin: 0; color: var(--on-ink-muted); font-size: 1rem; }
.mat__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; list-style: none; padding-left: 0; }
.mat__tags li {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--rule-dark);
  padding: 3px 8px;
  color: var(--on-ink-muted);
}
.mat--ask { background: transparent; border-style: dashed; justify-content: center; }
.mat--ask .mat__body { justify-content: center; }
.mat--ask a { color: var(--gold); font-weight: 600; }

.hscroll__hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: clamp(60px, 9vw, 120px);
  color: var(--on-ink-muted);
}
.hscroll__bar {
  flex: 1;
  max-width: 320px;
  height: 2px;
  background: var(--rule-dark);
  position: relative;
  overflow: hidden;
}
.hscroll__bar span {
  position: absolute; inset: 0;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0.1);
}

/* Pinned mode (enabled by JS on wide screens without reduced motion) */
.hscroll.is-pinned .hscroll__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hscroll.is-pinned .hscroll__track {
  overflow: visible;
  scroll-snap-type: none;
  will-change: transform;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: 20vw;
}
.hscroll.is-pinned .hscroll__hint { padding-bottom: 0; margin-top: 12px; }

/* Periodic strip */
.alloys { border-top: 1px solid var(--rule-dark); }
.ptable {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 700px) { .ptable { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.ptile {
  aspect-ratio: 1;
  border: 1px solid var(--rule-dark);
  padding: 10px 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.ptile:hover { border-color: var(--gold); transform: translateY(-4px); }
.ptile__n { font-family: var(--f-mono); font-size: 0.8125rem; color: var(--gold); }
.ptile__s {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  align-self: center;
}
.ptile__name { font-size: 0.875rem; color: var(--on-ink-muted); line-height: 1.25; }
.alloys__notes {
  margin-top: 28px;
  display: grid;
  gap: 12px 40px;
  color: var(--on-ink-muted);
  font-size: 1rem;
}
@media (min-width: 900px) { .alloys__notes { grid-template-columns: 1fr 1fr; } }
.alloys__notes p { margin: 0; }
.alloys__notes strong { color: var(--on-ink); }

/* ---------- Process ---------- */
.process-col { position: relative; }
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  counter-reset: step;
}
.process-rail {
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rule-light);
}
.process-rail span {
  position: absolute; inset: 0;
  background: var(--gold-deep);
  transform-origin: top;
  transform: scaleY(0);
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding-bottom: clamp(36px, 5vw, 56px);
}
.step:last-child { padding-bottom: 0; }
.step__num {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 2px solid var(--rule-light);
  background: var(--paper);
  font-family: var(--f-mono);
  font-weight: 500;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
  position: relative;
  z-index: 1;
}
.step.is-lit .step__num { background: var(--text); color: var(--paper); border-color: var(--text); }
.step h3 {
  font-family: var(--f-display);
  font-stretch: 108%;
  font-weight: 750;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.15;
  margin: 8px 0 8px;
}
.step p { margin: 0; color: var(--text-muted); max-width: 38rem; }
@media (min-width: 900px) {
  .process-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
  .process-wrap .process-col { grid-column: 2; }
}

/* ---------- Compliance ---------- */
.rules { display: grid; gap: 40px; }
@media (min-width: 900px) { .rules { grid-template-columns: 1fr 1fr; gap: 64px; } }
.rules__quote {
  margin: 0;
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 22px;
}
.rules__quote p { margin: 0 0 14px; font-size: 1.0625rem; }
.rules__quote footer { color: var(--on-ink-muted); }
.rules__list { list-style: none; margin: 0; padding: 0; }
.rules__list li {
  padding: 20px 0;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
}
.rules__list li:last-child { border-bottom: 1px solid var(--rule-dark); }
.rules__list svg { width: 28px; height: 28px; color: var(--gold); margin-top: 2px; }
.rules__list h3 { margin: 0 0 4px; font-size: 1.125rem; }
.rules__list p { margin: 0; color: var(--on-ink-muted); font-size: 1rem; }
.rules__intro { color: var(--on-ink-muted); margin: 0 0 24px; }

/* ---------- About + licence ---------- */
.about { display: grid; gap: 48px; }
@media (min-width: 900px) { .about { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; } }
.person { position: relative; max-width: 340px; }
.person__frame {
  position: relative;
  border: 1px solid var(--rule-light);
  padding: 10px;
  background: var(--paper);
}
.person img { width: 100%; height: auto; aspect-ratio: 316 / 395; object-fit: cover; filter: grayscale(0.15) contrast(1.02); }
.person figcaption { margin-top: 14px; }
.person__name { font-family: var(--f-display); font-stretch: 110%; font-weight: 750; font-size: 1.375rem; display: block; }
.person__role { color: var(--text-muted); }
.person__ar { display: block; margin-top: 2px; color: var(--text-muted); text-align: left; }

.licence {
  border: 1px solid var(--text);
  background: #faf8f3;
  position: relative;
}
.licence__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--text);
  background: var(--text);
  color: var(--paper);
}
.licence__head h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.02em; }
.licence dl { margin: 0; display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .licence dl { grid-template-columns: 1fr 1fr; } }
.licence dl > div { padding: 14px 20px; border-bottom: 1px solid var(--rule-light); }
@media (min-width: 600px) { .licence dl > div:nth-child(odd):not(.full) { border-right: 1px solid var(--rule-light); } }
.licence dl > div.full { grid-column: 1 / -1; }
.licence dt { color: var(--text-muted); margin-bottom: 2px; }
.licence dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.licence dd [lang="ar"] { display: block; text-align: left; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.licence__foot { padding: 14px 20px; font-size: 0.9375rem; color: var(--text-muted); }
.licence__stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 96px;
  height: 96px;
  color: var(--gold-deep);
  opacity: 0;
  transform: scale(1.6) rotate(-18deg);
  transition: opacity 0.35s, transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
  pointer-events: none;
}
.licence.is-in .licence__stamp { opacity: 0.85; transform: scale(1) rotate(-12deg); }
@media (max-width: 599px) { .licence__stamp { display: none; } }

.about__copy p { color: var(--text-muted); max-width: 38rem; }
.about__copy p strong { color: var(--text); }
.about__copy h3 {
  font-family: var(--f-display);
  font-stretch: 108%;
  font-weight: 750;
  font-size: 1.5rem;
  margin: 0 0 12px;
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.direct { list-style: none; margin: 0 0 28px; padding: 0; }
.direct li { border-top: 1px solid var(--rule-dark); }
.direct li:last-child { border-bottom: 1px solid var(--rule-dark); }
.direct a, .direct .direct__static {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 18px 0;
  text-decoration: none;
}
.direct .mono { color: var(--on-ink-muted); grid-column: 1 / -1; }
.direct__val {
  font-family: var(--f-display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  overflow-wrap: anywhere;
}
.direct a:hover .direct__val { color: var(--gold); }
.direct svg { width: 22px; height: 22px; color: var(--gold); }
.contact__note { color: var(--on-ink-muted); font-size: 0.9375rem; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 600px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; }
.field .opt { color: var(--on-ink-muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid #6b7178;
  border-radius: 0;
  color: var(--on-ink);
  font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field ::placeholder { color: #8d939a; opacity: 1; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-offset: 0; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: var(--danger-on-ink); }
.field__hint { font-size: 0.875rem; color: var(--on-ink-muted); }
.field__error { font-size: 0.875rem; color: var(--danger-on-ink); font-weight: 600; }
.field__error:empty { display: none; }

.consent {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--rule-dark);
  background: var(--ink);
}
.consent input {
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}
.consent label { font-size: 0.9375rem; color: var(--on-ink); }
.consent a { color: var(--gold); }
.form__summary {
  border: 1px solid var(--danger-on-ink);
  padding: 12px 16px;
  color: var(--on-ink);
}
.form__summary:empty { display: none; }
.form__summary ul { margin: 6px 0 0; padding-left: 20px; }
.form__summary a { color: var(--danger-on-ink); }
.form__status { color: var(--gold-soft); font-size: 0.9375rem; }
.form__status:empty { display: none; }
.form__fine { font-size: 0.875rem; color: var(--on-ink-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule-dark);
  padding-block: 56px 32px;
  font-size: 0.9375rem;
  color: var(--on-ink-muted);
}
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8125rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--on-ink); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: 0 0 6px; }
.footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-word {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.5rem, 11vw, 9.4rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 232, 223, 0.22);
  margin: 0 0 48px;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

/* Section readout (desktop) */
.readout {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  display: none;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(17, 19, 21, 0.86);
  border: 1px solid var(--rule-dark);
  color: var(--on-ink-muted);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.readout b { color: var(--gold); font-weight: 500; }
@media (min-width: 1400px) { .readout { display: flex; } }

.progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 101;
  transform-origin: left;
  transform: scaleX(0);
  background: var(--gold);
  pointer-events: none;
}

/* ---------- Reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero h1 .line > span {
  transform: translateY(105%);
  animation: lineUp 1s var(--ease) forwards;
  animation-delay: calc(0.1s + var(--i, 0) * 0.12s);
}
@keyframes lineUp { to { transform: none; } }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero h1 .line > span { transform: none; animation: none; }
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--rule-dark);
}
.legal-hero h1 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
.legal-hero p { margin: 0; color: var(--on-ink-muted); }
.legal-body { padding-block: clamp(48px, 7vw, 88px); }
.legal-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px 1fr; gap: 64px; } }
.legal-toc { font-size: 0.9375rem; }
@media (min-width: 960px) { .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.legal-toc h2 { font-family: var(--f-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px; color: var(--text-muted); }
.legal-toc ol { margin: 0; padding-left: 20px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--text); text-underline-offset: 3px; }
.prose { max-width: 44rem; }
.prose h2 {
  font-family: var(--f-display);
  font-stretch: 106%;
  font-weight: 750;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 48px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin: 24px 0 8px; }
.prose p, .prose li { color: #2d3136; }
.prose a { color: var(--gold-deep); font-weight: 600; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid var(--rule-light); vertical-align: top; }
.prose th { background: var(--paper-2); }
.table-scroll { overflow-x: auto; }
.callout {
  border-left: 3px solid var(--gold-deep);
  background: var(--paper-2);
  padding: 14px 18px;
  margin: 20px 0;
}
.callout p { margin: 0; }

@media print {
  .site-header, .progress, .readout, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-hero { padding-top: 0; }
}
