/* Kosan Holding — main stylesheet
   One stylesheet for all three languages: English (LTR, main) and
   Kurdish / Arabic (RTL). Layout uses logical properties so it mirrors
   automatically; typography switches on html[dir]. */

/* ---------- Tokens ---------- */
:root {
  --bg: #f8f5ee;
  --bg-2: #f1ece2;
  --paper: #fffdf8;
  --ink: #1e1810;
  --ink-2: #4b4135;
  --muted: #74685a;
  --line: #e6dccb;
  --line-2: #d6c8ae;

  --gold-900: #422c03;
  --gold-700: #6b5228;
  --gold-500: #a4895d;
  --gold-300: #cdb68c;
  --gold-100: #efe6d4;
  --grad: linear-gradient(100deg, #4a3409 0%, #a4895d 52%, #4a3409 100%);
  --shine: linear-gradient(100deg, #4a3409 0%, #8a6f42 22%, #d9c294 38%, #8a6f42 54%, #4a3409 72%, #8a6f42 100%);

  --night: #15110b;
  --night-2: #0f0c08;
  --night-ink: #f4eee2;
  --night-muted: #a99d88;
  --night-line: rgba(205, 182, 140, 0.18);

  --header-bg: rgba(248, 245, 238, 0.86);
  --glow-1: #fffdf8;
  --glow-1-end: rgba(255, 253, 248, 0);
  --glow-2: rgba(205, 182, 140, 0.18);
  --logo-tile: #f8f5ee;
  --shadow: rgba(66, 44, 3, 0.35);

  --f-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --f-arabic: "Vazirmatn", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-latin: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;

  /* English (LTR) defaults */
  --f-body: var(--f-sans);
  --f-display: var(--f-latin);
  --lh: 1.75;
  --start: left;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2vw, 28px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Kurdish / Arabic (RTL) */
html[dir="rtl"] {
  --f-body: var(--f-arabic);
  --f-display: "Noto Naskh Arabic", var(--f-arabic);
  --lh: 1.9;
  --start: right;
}

/* Dark theme — set by the header toggle (html[data-theme="dark"]), saved per visitor */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12100c;
  --bg-2: #17130e;
  --paper: #1c1712;
  --ink: #f2ece0;
  --ink-2: #cdc4b4;
  --muted: #a1957f;
  --line: #2f281f;
  --line-2: #4b4031;

  --gold-900: #dcc59a;
  --gold-700: #c9ae7c;
  --gold-100: #3b3022;
  --grad: linear-gradient(100deg, #9a7f4e 0%, #e4cfa2 52%, #9a7f4e 100%);
  --shine: linear-gradient(100deg, #8a6f42 0%, #c9ae7c 22%, #f4e6c4 38%, #c9ae7c 54%, #8a6f42 72%, #c9ae7c 100%);

  --night: #0c0a07;
  --night-2: #080604;

  --header-bg: rgba(18, 16, 12, 0.82);
  --glow-1: rgba(205, 182, 140, 0.07);
  --glow-1-end: rgba(205, 182, 140, 0);
  --glow-2: rgba(205, 182, 140, 0.07);
  --logo-tile: #d9d2c4;          /* company logos stay on a light plate so dark logos remain visible */
  --shadow: rgba(0, 0, 0, 0.55);
}
:root[data-theme="dark"] .brand img { filter: brightness(1.55) saturate(0.9); }

/* Holding logo: dark-ink version on light, champagne version on dark */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

@media (max-width: 640px) {
  :root { --header-h: 64px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }
::selection { background: var(--gold-100); color: var(--ink); }

.latin { font-family: var(--f-latin); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip {
  position: absolute; z-index: 100; top: -80px; inset-inline-start: 16px;
  padding: 10px 18px; background: var(--ink); color: var(--bg);
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.brand img { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--f-display); font-weight: 600; font-size: 1.12rem;
  line-height: 1; padding-top: 4px; white-space: nowrap;
}
@media (max-width: 820px) {
  .brand-name { display: none; }
}

.nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a {
  position: relative; display: block; padding: 10px 2px; white-space: nowrap;
  font-size: 0.95rem; color: var(--ink-2);
  transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 6px; height: 1px;
  background: var(--gold-500);
  transform: scaleX(0); transform-origin: var(--start);
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.header-end { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 36px); }

/* Language menu (native <details>, works without JS) */
.lang {
  position: relative;
  padding-inline-start: clamp(14px, 2.4vw, 28px);
  border-inline-start: 1px solid var(--line);
}
.lang summary {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding-inline: 2px;
  list-style: none; cursor: pointer;
  font-size: 0.92rem; color: var(--ink-2);
  transition: color 0.3s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); }
.lang summary .ico { width: 17px; height: 17px; color: var(--gold-700); }
.lang-short { display: none; }

.lang-menu {
  position: absolute; z-index: 60;
  top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 176px; padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 44px -24px var(--shadow);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 44px; padding: 0 14px;
  font-size: 0.98rem; color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}
.lang-menu a:hover { background: var(--bg); color: var(--ink); }
.lang-menu a[aria-current] { color: var(--gold-700); }
.lang-menu a[lang="en"] { font-family: var(--f-sans); }
.lang-menu a[lang="ckb"], .lang-menu a[lang="ar"] { font-family: var(--f-arabic); }
.lang-code {
  font-family: var(--f-sans); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--muted);
}

/* Icon buttons: theme toggle + mobile menu */
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink-2);
  cursor: pointer; transition: color 0.3s;
}
.icon-btn:hover { color: var(--ink); }
.icon-btn .ico { width: 19px; height: 19px; }

.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
html:not(.js) .theme-toggle { display: none; }

.menu-toggle { display: none; }
.menu-toggle .ico-close { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }
.menu-toggle[aria-expanded="true"] .ico-menu { display: none; }

@media (max-width: 560px) {
  .header-end { gap: 6px; }
  .lang { padding-inline-start: 12px; }
  .lang summary .ico { display: none; }
  .lang-current { display: none; }
  .lang-short { display: inline; font-family: var(--f-sans); font-size: 0.74rem; letter-spacing: 0.12em; }

  /* Without JS the three links stay inline; with JS they fold into the menu button */
  html:not(.js) .nav { gap: 12px; }
  html:not(.js) .nav a { font-size: 0.82rem; }
  .js .menu-toggle { display: inline-grid; }
  .js .site-nav {
    display: none;
    position: absolute; top: 100%; inset-inline: 0;
    padding: 4px var(--gutter) 14px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px var(--shadow);
  }
  .js .site-header.menu-open .site-nav { display: block; }
  .js .site-header.menu-open { border-bottom-color: var(--line); }
  .js .site-nav .nav { flex-direction: column; gap: 0; }
  .js .site-nav .nav li + li { border-top: 1px solid var(--line); }
  .js .site-nav .nav a { padding: 15px 2px; font-size: 1rem; }
  .js .site-nav .nav a::after { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px;
  border: 1px solid var(--gold-700);
  color: var(--ink); font-size: 0.95rem; font-weight: 500;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--gold-900); border-color: var(--gold-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  display: grid; place-items: center;
  padding: clamp(40px, 7vh, 96px) var(--gutter) clamp(112px, 15vh, 150px);
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    url("/assets/img/hero-bg.webp") center / auto 100% no-repeat,
    radial-gradient(55% 50% at 50% 40%, var(--glow-1) 0%, var(--glow-1-end) 72%),
    radial-gradient(90% 70% at 50% 110%, var(--glow-2) 0%, rgba(205, 182, 140, 0) 70%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 clamp(10px, 2.2vw, 28px) clamp(10px, 2.2vw, 28px);
  border: 1px solid var(--line); border-top: 0;
}

.hero-logo { margin: 0 auto; }
.hero-logo img {
  width: clamp(180px, min(50vw, 39svh), 360px);
  height: auto; margin-inline: auto;
}

.rule {
  display: block; width: 64px; height: 1px; margin: clamp(26px, 4.5vh, 44px) auto;
  background: var(--grad);
}

.hero-tag {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.6; color: var(--ink);
}
.hero-loc { margin-top: 6px; font-size: 0.95rem; color: var(--muted); }

.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: clamp(28px, 4.5vh, 44px);
}
.hero-actions .btn { min-width: 220px; }

.hero-scroll {
  position: absolute; bottom: clamp(30px, 5vh, 52px); left: 50%;
  width: 44px; height: 64px; margin-left: -22px;
  display: grid; place-items: center;
}
.hero-scroll span {
  position: relative; display: block; width: 1px; height: 100%;
  background: var(--line-2); overflow: hidden;
}
.hero-scroll span::after {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 40%;
  background: var(--gold-700);
  animation: scroll-cue 2.4s var(--ease) infinite;
}
@keyframes scroll-cue {
  0% { transform: translateY(-100%); }
  70%, 100% { transform: translateY(260%); }
}

/* Load-in for the hero (CSS only — content stays visible if animations are off) */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-logo, .rule, .hero-tag, .hero-loc, .hero-actions, .hero-social {
  animation: rise 1.1s var(--ease) both;
}
.hero-social { animation-delay: 0.52s; }
.rule { animation-delay: 0.15s; }
.hero-tag { animation-delay: 0.25s; }
.hero-loc { animation-delay: 0.32s; }
.hero-actions { animation-delay: 0.42s; }

@media (max-height: 560px) {
  .hero-scroll { display: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(84px, 11vw, 150px); }

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  font-size: 0.88rem; font-weight: 500; color: var(--gold-700);
}
.eyebrow-n {
  font-family: var(--f-latin); font-style: italic; font-size: 1.05rem;
  line-height: 1;
}
.eyebrow-n::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 36px; height: 1px; margin-inline-start: 14px;
  background: currentColor; opacity: 0.6;
}

.sec-title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.45;
  color: var(--ink);
}
.sec-sub { margin-top: 14px; max-width: 54ch; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(36px, 5vw, 80px); }
.about-grid .sec-head { margin-bottom: 0; }

.lead {
  max-width: 62ch;
  font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 2.15;
  color: var(--ink-2);
}

.about-fig {
  display: flex; flex-direction: column; align-items: flex-start;
  padding-inline-start: clamp(0px, 3vw, 48px);
}
.fig-num {
  font-family: var(--f-latin); font-weight: 400;
  font-size: clamp(6rem, 13vw, 10.5rem); line-height: 0.9;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-inline: 0.04em;
}
.fig-label {
  margin-top: 18px; padding-top: 16px; min-width: 200px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem; color: var(--muted);
}

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.6fr 1fr; align-items: end; }
  .about-grid .sec-head { grid-column: 1 / -1; }
  .about-fig { border-inline-start: 1px solid var(--line); }
}

/* ---------- Companies ---------- */
.companies { background: var(--bg-2); }

.co-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--gap);
}

.co {
  flex: 1 1 100%;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 0.4s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.co:hover {
  border-color: var(--gold-300);
  box-shadow: 0 22px 44px -28px var(--shadow);
  transform: translateY(-3px);
}

@media (min-width: 640px) {
  .co { flex: 0 1 calc((100% - var(--gap)) / 2); }
}
@media (min-width: 1000px) {
  .co { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); }
}

/* Company logos are pre-balanced on a 16:9 transparent canvas (see README), so they fill the tile */
.co-logo {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  background: var(--logo-tile);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.co-logo img {
  position: absolute; inset: 6%;
  width: 88%; height: 88%;
  object-fit: contain;
}
.co-logo img[src$="placeholder.svg"] { position: static; width: 64px; height: auto; }
@media (max-width: 639px) {
  .co-logo { aspect-ratio: 2 / 1; }
}

.co-body {
  position: relative; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(22px, 2.4vw, 32px);
}

.co-num {
  position: absolute; top: clamp(20px, 2.2vw, 30px); inset-inline-end: clamp(22px, 2.4vw, 32px);
  font-family: var(--f-latin); font-style: italic; font-size: 1.05rem; line-height: 1;
  color: var(--gold-500);
}

.co-name {
  padding-inline-end: 40px;
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.38rem; line-height: 1.6;
}

.co-field {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.86rem; color: var(--gold-700);
}
.co-field::before {
  content: ""; width: 18px; height: 1px; background: var(--gold-500);
}

.co-desc { margin-bottom: 14px; font-size: 0.97rem; line-height: 1.95; color: var(--ink-2); }

.co-contact {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
  font-size: 0.93rem; color: var(--ink-2);
}
.co-contact li { display: flex; align-items: flex-start; gap: 10px; }
.co-contact .ico { margin-top: 0.42em; color: var(--gold-700); }
.co-contact a { transition: color 0.3s; }
.co-contact a:hover { color: var(--gold-700); }

/* ---------- Social ---------- */
/* Icon rows (hero + footer) */
.hero-social, .footer-social { display: flex; flex-wrap: wrap; gap: 2px; }
.hero-social { justify-content: center; margin-top: clamp(20px, 3.4vh, 32px); }
.hero-social a, .footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px;
  transition: color 0.3s, transform 0.4s var(--ease);
}
.hero-social a { color: var(--muted); }
.hero-social a:hover { color: var(--gold-700); transform: translateY(-2px); }
.hero-social .ico, .footer-social .ico { width: 19px; height: 19px; }

/* Section: one giant handle + a strip of platform cards */
.social { position: relative; overflow: hidden; }
.social-head { text-align: center; }
.social-head .eyebrow { justify-content: center; }
.social-head .sec-sub { margin-inline: auto; }

.social-handle {
  margin: 4px 0 6px;
  font-family: var(--f-latin); font-style: italic; font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 7.4rem); line-height: 1.08; letter-spacing: -0.01em;
  background: var(--shine);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 9s linear infinite;
  padding-inline: 0.06em;
}
@keyframes shine {
  from { background-position: 100% 0; }
  to { background-position: -150% 0; }
}

.social-grid {
  display: grid; gap: 1px;
  margin-top: clamp(40px, 6vw, 68px);
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 760px) {
  /* every live platform in one row (comfortable up to ~6 platforms) */
  .social-grid { grid-auto-flow: column; grid-auto-columns: 1fr; }
}

.social-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 190px; height: 100%;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--bg); color: var(--ink);
  transition: color 0.45s var(--ease);
}
.social-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.social-card:hover, .social-card:focus-visible { color: var(--bg); }
.social-card:hover::before, .social-card:focus-visible::before { transform: scaleY(1); }

.sc-icon { width: 30px; height: 30px; stroke-width: 1.3; color: var(--gold-700); margin-bottom: auto; transition: color 0.45s; }
.social-card:hover .sc-icon, .social-card:focus-visible .sc-icon { color: var(--gold-300); }
.sc-name { margin-top: 30px; font-size: 1.45rem; line-height: 1.2; }
.sc-handle { font-size: 0.84rem; opacity: 0.6; }
.sc-arrow {
  position: absolute; top: clamp(22px, 2.4vw, 32px); inset-inline-end: clamp(22px, 2.4vw, 32px);
  width: 18px; height: 18px; opacity: 0.45;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.social-card:hover .sc-arrow, .social-card:focus-visible .sc-arrow { opacity: 1; transform: translate(3px, -3px); }

@media (max-width: 759px) {
  .social-card { flex-direction: row; align-items: center; gap: 16px; min-height: 76px; padding: 16px 20px; }
  .sc-icon { width: 26px; height: 26px; margin-bottom: 0; }
  .sc-name { margin-top: 0; font-size: 1.22rem; }
  .sc-handle { margin-inline-start: auto; margin-inline-end: 30px; }
  .sc-arrow { top: 50%; margin-top: -9px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--night); color: var(--night-ink); }
.contact .eyebrow { color: var(--gold-300); }
.contact .sec-title { color: var(--night-ink); }
.contact .sec-sub { color: var(--night-muted); }

.contact-grid {
  display: grid; gap: 1px;
  background: var(--night-line);
  border: 1px solid var(--night-line);
}
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .c-item--addr { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: 1fr 1fr 1.25fr; }
  .c-item--addr { grid-column: auto; }
}

.c-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: clamp(28px, 3.2vw, 46px);
  background: var(--night);
}

.c-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem; color: var(--gold-300);
}

.c-value {
  font-family: var(--f-latin);
  font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.6;
  color: var(--night-ink);
  background-image: linear-gradient(var(--gold-300), var(--gold-300));
  background-size: 0 1px; background-position: 100% 100%; background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.c-value:hover { color: #fff; background-size: 100% 1px; background-position: 0 100%; }

.c-addr { font-size: 1.05rem; line-height: 2; color: var(--night-ink); }
.c-addr-en {
  text-align: end;
  font-family: var(--f-latin); font-size: 0.95rem; line-height: 1.7;
  color: var(--night-muted);
}

.c-map {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px; min-height: 44px;
  font-size: 0.92rem; color: var(--gold-300);
  border-bottom: 1px solid rgba(205, 182, 140, 0.4);
  transition: color 0.3s, border-color 0.3s;
}
.c-map:hover { color: var(--night-ink); border-color: var(--night-ink); }

/* ---------- Footer ---------- */
.footer {
  background: var(--night-2); color: var(--night-muted);
  padding-block: clamp(40px, 6vw, 64px) calc(clamp(40px, 6vw, 64px) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--night-line);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
}
.footer-logo { width: 92px; }
.footer-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.footer-social { justify-content: center; margin-bottom: 8px; }
.footer-social a { color: var(--night-muted); }
.footer-social a:hover { color: var(--gold-300); transform: translateY(-2px); }
.footer-meta .latin { letter-spacing: 0.06em; }

@media (min-width: 760px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: start; }
  .footer-meta { align-items: flex-end; text-align: end; }
  .footer-social { justify-content: flex-end; margin-inline-end: -12px; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: 48px var(--gutter);
}
.notfound img { width: 150px; margin: 0 auto 32px; }
.notfound h1 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.6;
}
.notfound p { margin: 8px 0 32px; color: var(--muted); }
.notfound .nf-alt { margin: 0; font-family: var(--f-arabic); color: var(--ink-2); }
.notfound .nf-alt + .nf-alt { margin-bottom: 32px; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nf-actions .btn[lang] { font-family: var(--f-arabic); }

/* ---------- English (LTR) typography ---------- */
html[dir="ltr"] .brand-name {
  padding-top: 0;
  font-family: var(--f-sans); font-weight: 500; font-size: 0.76rem;
  letter-spacing: 0.32em; text-transform: uppercase;
}
html[dir="ltr"] .nav a,
html[dir="ltr"] .lang summary,
html[dir="ltr"] .btn,
html[dir="ltr"] .eyebrow,
html[dir="ltr"] .co-field,
html[dir="ltr"] .c-label,
html[dir="ltr"] .c-map {
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
html[dir="ltr"] .eyebrow-n { letter-spacing: 0; text-transform: none; }
html[dir="ltr"] .sec-title { font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
html[dir="ltr"] .hero-tag { font-style: italic; font-weight: 400; line-height: 1.3; font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
html[dir="ltr"] .hero-loc { letter-spacing: 0.04em; }
html[dir="ltr"] .lead { line-height: 1.85; }
html[dir="ltr"] .co-name { font-weight: 500; font-size: 1.55rem; line-height: 1.3; }
html[dir="ltr"] .co-desc { line-height: 1.75; }
html[dir="ltr"] .c-addr { font-family: var(--f-latin); font-size: 1.2rem; line-height: 1.7; }

@media (max-width: 560px) {
  html[dir="ltr"]:not(.js) .nav a { font-size: 0.68rem; letter-spacing: 0.1em; }
  html[dir="ltr"].js .site-nav .nav a { font-size: 0.8rem; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; z-index: 40;
  inset-inline-end: clamp(16px, 2.4vw, 32px);
  bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom));
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 30px -16px var(--shadow);
  transition: opacity 0.35s, visibility 0.35s, transform 0.45s var(--ease),
    background 0.3s, color 0.3s, border-color 0.3s;
}
.to-top:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.js .to-top:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* ---------- Scroll reveal (JS adds .is-pending only to below-the-fold items) ---------- */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(16px); }

@media (prefers-reduced-motion: reduce) {
  .reveal.is-pending { transform: none; }
  .reveal { transition: opacity 0.6s linear; }
  .hero-logo, .rule, .hero-tag, .hero-loc, .hero-actions, .hero-social { animation-name: fade; }
  .social-handle { animation: none; }
  .social-card::before { transition: none; }
  .hero-scroll span::after { animation: none; }
  .co:hover { transform: none; }
  .js .to-top:not(.is-visible) { transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
