/* ==========================================================
   yacht.qa — «سجلّ الملاح»
   كحلي الأعماق + نحاسي السفن + قماش الشراع
   ========================================================== */
:root {
  --abyss: #061B26;
  --deep: #0A2B3A;
  --sea: #124A5E;
  --tide: #3F7F8C;
  --foam: #F5F0E6;
  --sail: #FBF8F2;
  --sand: #E6D9C1;
  --brass: #C9A25E;
  --brass-hi: #E2C285;
  --ink: #0B1E28;
  --muted: #5E6E74;
  --line: rgba(11, 30, 40, .12);
  --line-l: rgba(245, 240, 230, .18);

  --f-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --f-disp: "Amiri", "Cormorant Garamond", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --r: 22px;
  --wrap: min(1240px, 100% - clamp(32px, 7vw, 96px));
  --hdr: 76px;
}
html[lang="en"] {
  --f-ar: "IBM Plex Sans", system-ui, sans-serif;
  --f-disp: "Cormorant Garamond", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--foam); color: var(--ink);
  font: 400 17px/1.8 var(--f-ar);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="en"] body { line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { overflow: visible; }
.wrap { width: var(--wrap); margin-inline: auto; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; font-feature-settings: "tnum"; }
.mono[lang="en"] { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .mono[lang="en"] { text-align: right; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 100; background: var(--brass); color: var(--abyss); padding: 10px 18px; border-radius: 999px; transition: top .3s; }
.skip:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brass); color: var(--abyss); }

/* ---------- الطباعة ---------- */
.display {
  font-family: var(--f-disp); font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.15; margin: 0 0 .4em;
  letter-spacing: -.005em; text-wrap: balance;
}
html[lang="en"] .display { font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.h3 { font-family: var(--f-disp); font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0; font-weight: 700; }
html[lang="en"] .h3 { font-weight: 500; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 52ch; margin: 0 0 1.5em; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-size: .82rem; font-weight: 500; letter-spacing: .12em; color: var(--sea);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.kicker.light { color: var(--brass-hi); }
.sect-no {
  display: block; font-family: var(--f-mono); font-size: .8rem; color: var(--brass);
  margin-bottom: 10px; letter-spacing: .2em;
}
.sect { padding-block: clamp(90px, 13vw, 170px); position: relative; }
.cap { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; color: var(--muted); margin-top: 14px; }
.cap small, .over-p small, .cap.light small { font-size: .72rem; opacity: .7; letter-spacing: .04em; }
.cap.light { color: rgba(245, 240, 230, .7); }

/* ---------- الأزرار ---------- */
.btn {
  --bg: transparent; position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: .98rem; line-height: 1; white-space: nowrap;
  transition: transform .5s var(--ease), color .4s, border-color .4s, box-shadow .5s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--abyss); transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); }
.btn .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
html[dir="ltr"] .btn .arr:not(.up) { transform: scaleX(-1); }
.btn:hover .arr:not(.up) { transform: translateX(-5px); }
html[dir="ltr"] .btn:hover .arr:not(.up) { transform: scaleX(-1) translateX(-5px); }
.btn:hover .arr.up { transform: translateY(-4px); }
.btn-brass { background: var(--brass); color: var(--abyss); box-shadow: 0 10px 30px -12px rgba(201, 162, 94, .7); }
.btn-brass:hover { color: var(--brass-hi); }
.btn-glass {
  color: var(--sail); border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass::before { background: var(--sail); }
.btn-glass:hover { color: var(--abyss); border-color: var(--sail); }
.btn-sm { padding: 11px 20px; font-size: .88rem; }

/* ---------- الترويسة ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--sail);
  transition: background .5s, color .5s, box-shadow .5s, transform .5s var(--ease);
}
.site-header.solid {
  background: rgba(245, 240, 230, .82); color: var(--ink);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.away { transform: translateY(-100%); }
.bar { width: var(--wrap); margin-inline: auto; height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; direction: ltr; }
.brand-mark { width: 34px; height: 34px; color: var(--brass); transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-12deg); }
.brand-word { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; line-height: 1; }
.brand-word em { font-style: italic; color: var(--brass); font-weight: 500; }
.site-nav { margin-inline-start: auto; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a {
  position: relative; display: flex; align-items: baseline; gap: 6px; text-decoration: none;
  padding: 8px 12px; font-size: .92rem; border-radius: 999px; transition: background .3s;
}
.nav-list a b { font: 400 .62rem var(--f-mono); color: var(--brass); opacity: 0; transform: translateY(4px); transition: .4s var(--ease); }
.nav-list a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 4px; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
html[dir="ltr"] .nav-list a::after { transform-origin: left; }
.nav-list a:hover::after, .nav-list a[aria-current]::after { transform: scaleX(1); }
.nav-list a:hover b, .nav-list a[aria-current] b { opacity: 1; transform: none; }
.nav-foot { display: none; }
.bar-end { display: flex; align-items: center; gap: 10px; }
.lang {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; background: none;
  font-size: .8rem; font-weight: 600; opacity: .85; transition: background .3s, color .3s, opacity .3s;
}
.lang:hover { background: var(--brass); color: var(--abyss); border-color: var(--brass); opacity: 1; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; background: none; position: relative; }
.burger { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; }
.burger i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav-toggle[aria-expanded="true"] .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.course { position: absolute; inset-inline: 0; bottom: 0; height: 2px; }
.course i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: linear-gradient(90deg, var(--brass), var(--brass-hi)); }
.course svg { position: absolute; inset-inline-end: -12px; bottom: -1px; width: 22px; height: 11px; fill: var(--brass); opacity: 0; transition: opacity .4s; }
html[dir="rtl"] .course svg { transform: scaleX(-1); }
.site-header.solid .course svg { opacity: 1; }

/* ---------- البطل ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--sail); overflow: hidden; background: var(--abyss); isolation: isolate;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 60%; transform: scale(1.08); animation: kenburns 22s var(--ease-io) infinite alternate; will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 27, 38, .55) 0%, rgba(6, 27, 38, 0) 28%),
    linear-gradient(0deg, rgba(6, 27, 38, .92) 0%, rgba(6, 27, 38, .35) 45%, rgba(6, 27, 38, 0) 70%),
    radial-gradient(120% 80% at 85% 100%, rgba(18, 74, 94, .5), transparent 60%);
}
html[dir="rtl"] .hero-media::before, html[dir="ltr"] .hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgba(6, 27, 38, .7) 0%, rgba(6, 27, 38, .25) 45%, transparent 70%);
}
html[dir="ltr"] .hero-media::before { background: linear-gradient(to right, rgba(6, 27, 38, .7) 0%, rgba(6, 27, 38, .25) 45%, transparent 70%);
}
@keyframes kenburns { from { transform: scale(1.08) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -2%, 0); } }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; opacity: .12; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-text { padding-top: calc(var(--hdr) + 40px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; letter-spacing: .14em; color: var(--sand); margin: 0 0 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(201, 162, 94, .6); animation: beacon 2.4s infinite; }
@keyframes beacon { 70% { box-shadow: 0 0 0 12px rgba(201, 162, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 162, 94, 0); } }
.hero h1 {
  font-family: var(--f-disp); font-weight: 700; margin: 0 0 24px;
  font-size: clamp(3.2rem, 10vw, 8.6rem); line-height: 1.02; letter-spacing: -.01em;
}
html[lang="en"] .hero h1 { font-weight: 500; letter-spacing: -.035em; line-height: .95; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.hero h1 .l2 > span { animation-delay: .15s; color: var(--brass-hi); text-shadow: 0 4px 40px rgba(6, 27, 38, .45); }
.hero h1 .ln:first-child > span { text-shadow: 0 4px 40px rgba(6, 27, 38, .45); }
html[lang="en"] .hero h1 .l2 > span { font-style: italic; }
@keyframes rise { to { transform: none; } }
.hero-line { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: rgba(251, 248, 242, .86); max-width: 34ch; margin: 0 0 36px; opacity: 0; animation: fade 1.2s .55s var(--ease) forwards; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: fade 1.2s .75s var(--ease) forwards; }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.instruments {
  display: grid; grid-template-columns: repeat(3, auto) 1fr; align-items: center; gap: clamp(20px, 4vw, 56px);
  margin-top: clamp(48px, 8vh, 90px); padding: 22px 0 120px; border-top: 1px solid var(--line-l);
  opacity: 0; animation: fade 1.2s 1s var(--ease) forwards;
}
.inst { display: flex; flex-direction: column; gap: 4px; }
.inst-k { display: block; font-size: .72rem; letter-spacing: .14em; color: rgba(230, 217, 193, .7); }
.inst-v { display: block; font-size: .95rem; color: var(--sail); }
.compass-wrap { flex-direction: row; align-items: center; gap: 12px; }
.compass { width: 44px; height: 44px; color: var(--sand); }
.compass .rose { transform-origin: 32px 32px; transition: transform .6s var(--ease); }
.compass text { font: 600 7px var(--f-mono); fill: var(--brass-hi); }
.scroll-cue { justify-self: end; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: .82rem; letter-spacing: .1em; color: var(--sand); }
.scroll-cue i { position: relative; width: 1px; height: 46px; background: rgba(230, 217, 193, .3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset-inline: 0; top: -40%; height: 40%; background: var(--brass); animation: drip 2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
.hero-credit { position: absolute; inset-inline-end: clamp(16px, 3.5vw, 48px); top: calc(var(--hdr) + 16px); margin: 0; font-size: .7rem; color: rgba(251, 248, 242, .5); writing-mode: vertical-rl; }
.wave-edge { position: absolute; inset-inline: 0; bottom: -1px; width: 100%; height: clamp(50px, 7vw, 90px); }
.wave-edge .w1 { fill: rgba(245, 240, 230, .35); animation: sway 9s ease-in-out infinite alternate; }
.wave-edge .w2 { fill: var(--foam); animation: sway 7s ease-in-out infinite alternate-reverse; }
@keyframes sway { from { transform: translateX(-2%); } to { transform: translateX(2%); } }
.wave-edge path { transform-box: fill-box; }

/* ---------- الامتلاك ---------- */
.own-grid { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-areas: "copy fig" "quote fig"; gap: 40px clamp(40px, 7vw, 110px); align-items: start; }
.own-copy { grid-area: copy; padding-top: 30px; }
.own-fig { grid-area: fig; margin: 0; position: relative; }
.own-fig img { border-radius: 200px 200px var(--r) var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.own-fig::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 120px; height: 120px; z-index: -1;
  border: 1px solid var(--brass); border-radius: 50%;
}
.own-quote { grid-area: quote; margin: 0; padding: 34px 0 0; border-top: 1px solid var(--line); max-width: 30ch; }
.own-quote p { margin: 0; font-family: var(--f-disp); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.5; color: var(--sea); }
.log { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.log li { display: grid; grid-template-columns: 52px 1fr; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
.log li:hover { padding-inline-start: 10px; }
.log li span { font-size: .8rem; color: var(--brass); }
.log li p { margin: 0; font-size: 1.05rem; }

/* ---------- المرسى ---------- */
.marina { background: var(--abyss); color: var(--sail); padding-bottom: clamp(80px, 10vw, 130px); }
.marina-full { position: relative; height: min(100vh, 900px); min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.marina-full img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.marina-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--abyss) 0%, rgba(6, 27, 38, .45) 45%, rgba(6, 27, 38, .1) 100%); }
.over { position: relative; z-index: 1; padding-bottom: clamp(50px, 8vw, 100px); }
.over .display { max-width: 14ch; }
.over-p { color: rgba(251, 248, 242, .8); font-size: 1.1rem; margin: 0; }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 70px 0 28px; border-bottom: 1px solid var(--line-l); }
.gal-ctrl { display: flex; align-items: center; gap: 10px; }
.gal-count { font-size: .85rem; color: var(--sand); margin-inline-end: 10px; }
.round {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-l); background: none; color: var(--sail);
  display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[dir="ltr"] .round svg { transform: scaleX(-1); }
.round:hover { background: var(--brass); border-color: var(--brass); color: var(--abyss); }
.round:active { transform: scale(.94); }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 34vw, 480px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 36px max(calc((100vw - 1240px) / 2), clamp(16px, 3.5vw, 48px)) 10px;
  scroll-padding-inline: max(calc((100vw - 1240px) / 2), clamp(16px, 3.5vw, 48px));
  scrollbar-width: none; cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slide { margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); transition: transform 1s var(--ease), filter 1s; filter: saturate(.85); pointer-events: none; }
.slide:hover img { transform: scale(.98); filter: saturate(1.05); }
.slide figcaption { display: flex; flex-direction: column; gap: 2px; padding: 16px 4px 0; }
.slide figcaption b { font-family: var(--f-disp); font-size: 1.35rem; font-weight: 700; }
html[lang="en"] .slide figcaption b { font-weight: 500; }
.slide figcaption span { color: rgba(230, 217, 193, .75); font-size: .92rem; }

/* ---------- الطريق ---------- */
.path { background: var(--sail); }
.path-head { max-width: 760px; margin-bottom: clamp(50px, 7vw, 90px); }
.voyage { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.voyage-frame { position: sticky; top: calc(var(--hdr) + 30px); }
.vf-imgs { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r); overflow: hidden; background: var(--deep); }
.vf-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.vf-imgs img.on { opacity: 1; transform: none; }
.vf-chart { position: relative; margin-top: 22px; display: flex; align-items: center; gap: 18px; }
.vf-chart svg { flex: 1; height: 60px; }
html[dir="ltr"] .vf-chart svg { transform: scaleX(-1); }
.vf-chart path { fill: none; stroke-width: 1.5; }
.route-bg { stroke: var(--line); stroke-dasharray: 4 6; }
.route { stroke: var(--brass); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
.vf-chart circle { fill: var(--sail); stroke: var(--brass); stroke-width: 1.5; }
.vf-wp { font-size: .82rem; color: var(--sea); min-width: 56px; }
.stops { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.stop { position: relative; padding: 34px 0 34px; border-top: 1px solid var(--line); min-height: 52vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .6s; }
.stop:last-child { border-bottom: 1px solid var(--line); }
.stop.on { opacity: 1; }
.stop-img { display: none; }
.stop-n { font-size: .8rem; color: var(--brass); }
.stop h3 { font-family: var(--f-disp); font-size: clamp(2rem, 3.4vw, 3rem); margin: 6px 0 8px; line-height: 1.2; }
html[lang="en"] .stop h3 { font-weight: 500; }
.stop p { margin: 0; font-size: 1.08rem; color: var(--muted); max-width: 40ch; }
.tip { margin-top: 22px !important; padding: 16px 20px; background: var(--foam); border-radius: 14px; border-inline-start: 2px solid var(--brass); font-size: .95rem !important; color: var(--ink) !important; }
.tip b { display: block; font-size: .72rem; letter-spacing: .14em; color: var(--brass); font-weight: 600; margin-bottom: 2px; }

/* ---------- يوم على الماء ---------- */
.day {
  position: relative; color: var(--sail); overflow: hidden; isolation: isolate;
  padding-block: clamp(90px, 12vw, 160px) clamp(70px, 9vw, 120px);
  --sky1: #2B1A2E; --sky2: #C0683B;
}
.day-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, var(--abyss) 10%, var(--sky1) 55%, var(--sky2) 130%); transition: background 1.2s; }
.day[data-moment="0"] { --sky1: #3A2233; --sky2: #D9783F; }
.day[data-moment="1"] { --sky1: #51303A; --sky2: #E09A55; }
.day[data-moment="2"] { --sky1: #22324A; --sky2: #B87355; }
.day[data-moment="3"] { --sky1: #0B1F35; --sky2: #1E3E66; }
.day-sky { background: linear-gradient(160deg, var(--abyss) 10%, var(--sky1) 60%, var(--sky2) 140%); }
.day-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.day .lede { color: rgba(251, 248, 242, .7); }
.moment-text { min-height: 150px; margin: 20px 0 26px; }
.m-time { font-size: .9rem; color: var(--brass-hi); }
.moment-text h3 { font-family: var(--f-disp); font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 4px 0 6px; line-height: 1.2; }
html[lang="en"] .moment-text h3 { font-weight: 500; }
.moment-text p { margin: 0; color: rgba(251, 248, 242, .82); font-size: 1.08rem; max-width: 36ch; }
.moment-text.swap > * { animation: fade .8s var(--ease) both; }
.moment-text.swap h3 { animation-delay: .06s; }
.moment-text.swap p { animation-delay: .12s; }
.dial { max-width: 440px; }
.sun-arc { width: 100%; height: auto; color: var(--sand); }
html[dir="rtl"] .sun-arc { transform: scaleX(-1); }
#sun { fill: var(--brass-hi); filter: drop-shadow(0 0 10px rgba(226, 194, 133, .9)); transition: cx .9s var(--ease), cy .9s var(--ease), fill .9s; }
.day[data-moment="3"] #sun { fill: #E8EEF2; filter: drop-shadow(0 0 8px rgba(232, 238, 242, .8)); }
.dial input[type="range"] { width: 100%; margin: 6px 0 0; accent-color: var(--brass); }
.dial-ticks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.dial-ticks button { background: none; border: 0; padding: 8px 0; font-size: .86rem; color: rgba(251, 248, 242, .55); transition: color .3s; text-align: center; }
.dial-ticks button:first-child { text-align: start; }
.dial-ticks button:last-child { text-align: end; }
.dial-ticks button.on, .dial-ticks button:hover { color: var(--brass-hi); }
.day-fig { margin: 0; }
.day-imgs { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r) var(--r) var(--r) 180px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
html[dir="ltr"] .day-imgs { border-radius: var(--r) var(--r) 180px var(--r); }
.day-imgs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 2s var(--ease); }
.day-imgs img.on { opacity: 1; transform: none; }
.horizon { font-family: var(--f-disp); font-size: clamp(1.6rem, 3.4vw, 2.8rem); text-align: center; margin-top: clamp(70px, 9vw, 120px) !important; margin-bottom: 0; color: var(--sand); }

/* range مخصّص */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 28px; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: currentColor; opacity: 1; border-radius: 2px; background: linear-gradient(90deg, var(--brass), rgba(201, 162, 94, .3)); }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(201, 162, 94, .45); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--brass); border: 4px solid var(--sail); box-shadow: 0 2px 10px rgba(0, 0, 0, .3); transition: transform .3s; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--brass); border: 4px solid var(--sail); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }

/* ---------- المعرض والمراسي ---------- */
.facts { background: var(--foam); }
.facts-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 50px; }
.facts-head .lede { margin: 0 0 .9em; }
.show {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 70px); align-items: center;
  padding: clamp(28px, 4vw, 46px); border-radius: var(--r); background: var(--deep); color: var(--sail); margin-bottom: 30px;
  position: relative; overflow: hidden;
}
.show::after { content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(201, 162, 94, .35); box-shadow: 0 0 0 40px rgba(201, 162, 94, .05), 0 0 0 80px rgba(201, 162, 94, .03); }
.show-date { display: flex; flex-direction: column; gap: 6px; padding-inline-end: clamp(24px, 5vw, 70px); border-inline-end: 1px solid var(--line-l); }
.show-date .mono { font-size: .78rem; color: var(--brass-hi); }
.show-date strong { font-family: var(--f-disp); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.badge { align-self: start; font-size: .74rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-l); color: var(--sand); }
.show-body h3 { font-family: var(--f-disp); font-size: 1.6rem; margin: 0 0 4px; }
.show-body p { margin: 0 0 14px; color: rgba(251, 248, 242, .78); }
.src-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--brass); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .3s, gap .3s; margin-inline-end: 18px; }
.src-link:hover { border-color: currentColor; gap: 10px; }
.src-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
html[dir="rtl"] .src-link svg { transform: scaleX(-1); }
.show .src-link { color: var(--brass-hi); }

.chart-wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; align-items: stretch; }
.chart { position: relative; border-radius: var(--r); background: #D8E3E2; color: var(--sea); overflow: hidden; aspect-ratio: 400 / 480; }
.chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
html[dir="ltr"] .chart-svg { transform: none; }
.land { fill: #EFE6D2; stroke: rgba(18, 74, 94, .35); stroke-width: 1; }
.isobath { fill: none; stroke: rgba(18, 74, 94, .22); stroke-dasharray: 2 4; }
.rose-s text, .sea-lbl { font: 500 10px var(--f-mono); fill: var(--sea); letter-spacing: .1em; }
.sea-lbl { font-family: var(--f-ar); font-size: 13px; opacity: .7; }
.pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px;
}
.pin i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--sail); border: 2px solid var(--sea); transition: background .3s, transform .4s var(--ease); flex: none; }
.pin i::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--brass); opacity: 0; transform: scale(.5); }
.pin span { font-size: .8rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(251, 248, 242, .9); color: var(--ink); box-shadow: 0 4px 14px rgba(6, 27, 38, .12); white-space: nowrap; transition: background .3s, color .3s; }
.pin:hover i { transform: scale(1.2); }
.pin[aria-pressed="true"] i { background: var(--brass); border-color: var(--abyss); }
.pin[aria-pressed="true"] i::after { animation: ping 2s infinite; }
.pin[aria-pressed="true"] span { background: var(--abyss); color: var(--sail); }
@keyframes ping { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.8); } }
.chart-note { position: absolute; bottom: 12px; inset-inline-start: 16px; margin: 0; font-size: .72rem; color: var(--sea); opacity: .8; }
.ports { position: relative; display: grid; }
.port {
  grid-area: 1 / 1; padding: clamp(28px, 4vw, 48px); border-radius: var(--r); background: var(--sail); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
  display: flex; flex-direction: column;
}
.port.on { opacity: 1; visibility: visible; transform: none; }
.port > .mono { font-size: .78rem; color: var(--brass); }
.port h3 { font-family: var(--f-disp); font-size: clamp(2rem, 3.2vw, 2.8rem); margin: 6px 0 12px; line-height: 1.2; }
html[lang="en"] .port h3 { font-weight: 500; }
.port p { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); margin: 0 0 24px; }
.specs div { background: var(--sail); padding: 16px 0; }
.specs dt { font-size: .76rem; letter-spacing: .1em; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-size: 1.5rem; color: var(--sea); }
.port .src-link { margin-top: auto; padding-top: 4px; align-self: flex-start; }
.port .src-link + .src-link { margin-top: 8px; }

/* ---------- عُدّة الملاح ---------- */
.kit { background: var(--abyss); color: var(--sail); }
.kit::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 10% 0%, rgba(18, 74, 94, .55), transparent 70%); pointer-events: none; }
.kit-head { position: relative; margin-bottom: 50px; max-width: 720px; }
.kit-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 20px; }
.tool, .glossary { border: 1px solid var(--line-l); border-radius: var(--r); padding: 30px; background: rgba(255, 255, 255, .03); transition: border-color .4s, background .4s; }
.tool:hover, .glossary:hover { border-color: rgba(201, 162, 94, .45); background: rgba(255, 255, 255, .05); }
.tool h3, .glossary h3 { font-family: var(--f-disp); font-size: 1.6rem; margin: 0; }
html[lang="en"] .tool h3, html[lang="en"] .glossary h3 { font-weight: 500; }
.tool-sub { margin: 2px 0 22px; font-size: .9rem; color: rgba(230, 217, 193, .7); }
.glossary .tool-sub { margin: 16px 0 0; }
.field { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line-l); padding-bottom: 6px; }
.field label { font-size: .85rem; color: var(--sand); }
.field input { width: 60%; background: none; border: 0; color: var(--sail); font: 500 2.4rem var(--f-mono); text-align: end; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field input:focus { outline: none; color: var(--brass-hi); }
.field:focus-within { border-color: var(--brass); }
.tool input[type="range"] { width: 100%; margin: 16px 0 10px; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.readouts div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-size: .8rem; color: var(--sand); }
.readouts .big { font-size: 1.5rem; color: var(--sail); }
.readouts .cls { font-size: 1rem; color: var(--brass-hi); font-weight: 500; line-height: 1.5; min-height: 2.25rem; display: flex; align-items: center; }
.hull { margin-top: 16px; height: 10px; border-radius: 0 0 20px 20px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.hull i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--brass), var(--brass-hi)); border-radius: inherit; transition: width .5s var(--ease); }
.terms { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.term {
  position: relative; width: 100%; min-height: 92px; border: 1px solid var(--line-l); border-radius: 14px; background: none; padding: 0;
  perspective: 800px; text-align: start;
}
.t-front, .t-back { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .7s var(--ease); }
.t-front b { font-family: var(--f-disp); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
html[lang="en"] .t-front b { font-weight: 500; }
.t-front em { font: 400 .76rem var(--f-mono); color: var(--brass-hi); font-style: normal; }
.t-back { transform: rotateY(180deg); background: var(--brass); color: var(--abyss); font-size: .88rem; line-height: 1.55; }
.term.flip .t-front { transform: rotateY(-180deg); }
.term.flip .t-back { transform: none; }
.term:hover { border-color: rgba(201, 162, 94, .6); }

/* ---------- الأسئلة ---------- */
.faq { background: var(--sail); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:first-child { border-top: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; transition: color .3s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--sea); }
.acc summary i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: background .4s, border-color .4s, transform .5s var(--ease); }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.acc summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] summary i { background: var(--brass); border-color: var(--brass); transform: rotate(180deg); }
.acc details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc details[open] .ans { grid-template-rows: 1fr; }
.ans p { overflow: hidden; margin: 0; color: var(--muted); max-width: 60ch; }
.acc details[open] .ans p { padding-bottom: 26px; }

/* ---------- التذييل ---------- */
.site-footer { background: var(--abyss); color: rgba(251, 248, 242, .8); padding: clamp(70px, 9vw, 120px) 0 30px; }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid var(--line-l); }
.foot-cta .display { margin: 0; color: var(--sail); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 40px; padding: 50px 0; }
.foot-grid .brand { color: var(--sail); margin-bottom: 16px; }
.foot-about { font-size: .92rem; max-width: 42ch; margin: 0; }
.foot-h { font-size: .78rem; letter-spacing: .14em; color: var(--brass); font-weight: 500; margin: 0 0 12px; }
.runs { margin: 0; font-size: .9rem; line-height: 2; }
.runs.small { font-size: .8rem; }
.runs a { text-decoration: none; border-bottom: 1px solid var(--line-l); transition: color .3s, border-color .3s; }
.runs a:hover { color: var(--brass-hi); border-color: var(--brass); }
.foot-end { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; padding-top: 24px; border-top: 1px solid var(--line-l); color: rgba(230, 217, 193, .6); }

/* ---------- كشف عند التمرير ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .reveal-img img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.4s var(--ease), transform 1.8s var(--ease); }
.js .reveal-img.in img { clip-path: inset(0 0 0 0); transform: none; }
.js .slide { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .slide.in { opacity: 1; transform: none; }

/* ---------- متجاوب ---------- */
@media (max-width: 1080px) {
  .kit-grid { grid-template-columns: 1fr 1fr; }
  .glossary { grid-column: 1 / -1; }
  .terms { grid-template-columns: repeat(4, 1fr); }
  .nav-list a { padding: 8px 9px; font-size: .88rem; }
}
@media (max-width: 960px) {
  :root { --hdr: 68px; }
  .hide-sm { display: none !important; }
  .nav-toggle { display: block; }
  .bar-end { margin-inline-start: auto; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; background: var(--abyss); color: var(--sail);
    display: flex; flex-direction: column; justify-content: center; padding: 100px clamp(24px, 7vw, 60px) 40px;
    clip-path: circle(0% at calc(100% - 40px) 34px); transition: clip-path .8s var(--ease-io); visibility: hidden;
  }
  html[dir="rtl"] .site-nav { clip-path: circle(0% at 40px 34px); }
  .site-nav.open { clip-path: circle(150% at calc(100% - 40px) 34px); visibility: visible; }
  html[dir="rtl"] .site-nav.open { clip-path: circle(150% at 40px 34px); }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line-l); overflow: hidden; }
  .nav-list a { font-family: var(--f-disp); font-size: clamp(1.8rem, 7vw, 2.6rem); padding: 14px 0; gap: 16px; border-radius: 0; align-items: center; }
  .nav-list a b { opacity: 1; transform: none; font-size: .75rem; }
  .nav-list a::after { display: none; }
  .site-nav .nav-list li a { transform: translateY(100%); transition: transform .7s var(--ease); }
  .site-nav.open .nav-list li a { transform: none; }
  .site-nav.open .nav-list li:nth-child(2) a { transition-delay: .05s; }
  .site-nav.open .nav-list li:nth-child(3) a { transition-delay: .1s; }
  .site-nav.open .nav-list li:nth-child(4) a { transition-delay: .15s; }
  .site-nav.open .nav-list li:nth-child(5) a { transition-delay: .2s; }
  .site-nav.open .nav-list li:nth-child(6) a { transition-delay: .25s; }
  .nav-foot { display: block; margin: 30px 0 0; font-size: .85rem; color: var(--sand); }
  .site-header.menu-open { background: transparent; color: var(--sail); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.menu-open .course { opacity: 0; }

  .own-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "fig" "quote"; }
  .own-fig { max-width: 520px; }
  .voyage { grid-template-columns: 1fr; }
  .voyage-frame { display: none; }
  .stop { min-height: 0; opacity: 1; padding: 30px 0; }
  .stop-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }
  .day-grid { grid-template-columns: 1fr; }
  .day-fig { order: -1; }
  .facts-head, .chart-wrap, .faq-grid { grid-template-columns: 1fr; }
  .chart { aspect-ratio: 4 / 3.6; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .instruments { grid-template-columns: 1fr 1fr; padding-bottom: 90px; gap: 18px 24px; }
  .compass-wrap { display: none; }
  .scroll-cue { display: none; }
  .hero-credit { display: none; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .show { grid-template-columns: 1fr; }
  .show-date { border-inline-end: 0; padding-inline-end: 0; border-bottom: 1px solid var(--line-l); padding-bottom: 20px; }
  .kit-grid { grid-template-columns: 1fr; }
  .terms { grid-template-columns: repeat(2, 1fr); }
  .tool, .glossary { padding: 24px; }
  .gallery-head { padding-top: 50px; }
  .gal-count { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .pin span { font-size: .72rem; padding: 3px 8px; }
  .specs dd { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero h1 .ln > span, .hero-line, .actions, .instruments { transform: none; opacity: 1; }
  .js .rv, .js .slide { opacity: 1; transform: none; }
  .js .reveal-img img { clip-path: none; transform: none; }
}
