:root {
  --black: #070706;
  --near-black: #10100e;
  --charcoal: #181715;
  --gold: #c7a14a;
  --soft-gold: #ead69c;
  --ivory: #f7f1e6;
  --muted: #b9ad98;
  --line: rgba(199, 161, 74, 0.24);
  --white-line: rgba(247, 241, 230, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --glass: rgba(12, 12, 10, 0.54);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(199, 161, 74, 0.05), rgba(7, 7, 6, 0) 360px),
    var(--black);
  color: var(--ivory);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.scroll-progress {
  background: linear-gradient(90deg, transparent, var(--soft-gold), var(--gold));
  height: 2px;
  left: 0;
  position: fixed;
  top: 0;
  transform: scaleX(0);
  transform-origin: left;
  width: 100%;
  z-index: 20;
}

.proposal-header {
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 78% 46%, rgba(199, 161, 74, 0.2), transparent 28%),
    linear-gradient(90deg, rgba(7, 7, 6, 0.97), rgba(7, 7, 6, 0.7), rgba(7, 7, 6, 0.92)),
    url("https://images.pexels.com/photos/8112427/pexels-photo-8112427.jpeg?auto=compress&cs=tinysrgb&w=1800");
  background-position: center right;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.proposal-header::after {
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0), rgba(7, 7, 6, 0.92)),
    linear-gradient(90deg, rgba(234, 214, 156, 0.08), transparent 26%, rgba(234, 214, 156, 0.04));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.pearl-field {
  height: 100%;
  inset: 0;
  opacity: 0.62;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: -1;
}

.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(7, 7, 6, 0.78), rgba(7, 7, 6, 0.34));
  border: 1px solid var(--white-line);
  border-radius: 999px;
  display: flex;
  justify-content: space-between;
  margin: 22px clamp(16px, 4vw, 54px) 0;
  min-height: 74px;
  padding: 14px 18px 14px 24px;
  position: relative;
  z-index: 3;
}

.brand-mark {
  display: grid;
  gap: 2px;
}

.brand-mark span,
h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.brand-mark span {
  color: var(--soft-gold);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.nav-actions a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  min-height: 40px;
  padding: 9px 12px;
}

.nav-actions a:hover {
  border-color: var(--white-line);
  color: var(--ivory);
}

.print-button,
.language-toggle,
.primary-link,
.secondary-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  min-height: 42px;
  padding: 10px 18px;
}

.print-button,
.language-toggle,
.secondary-link {
  background: transparent;
  color: var(--ivory);
}

.print-button:hover,
.language-toggle:hover,
.secondary-link:hover {
  border-color: var(--soft-gold);
}

.language-toggle {
  min-width: 48px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 76px);
  grid-template-columns: minmax(0, 0.98fr) minmax(330px, 0.62fr);
  max-width: 1440px;
  min-height: calc(100vh - 100px);
  padding: clamp(70px, 9vw, 132px) clamp(20px, 5vw, 72px) 70px;
  perspective: 1200px;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 1010px;
  position: relative;
}

.hero-content::before {
  background: linear-gradient(180deg, var(--soft-gold), transparent);
  content: "";
  height: 164px;
  left: -28px;
  opacity: 0.52;
  position: absolute;
  top: 4px;
  width: 1px;
}

.eyebrow,
.section-label,
.feature-grid article span,
.timeline article span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(52px, 7.6vw, 112px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 900px;
}

.hero-copy {
  color: #ddd2bf;
  font-size: clamp(17px, 2vw, 21px);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.hero-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(28px, 4vw, 48px);
  max-width: 660px;
}

.hero-metrics span {
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--white-line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 4px;
  min-height: 96px;
  padding: 18px;
  text-transform: uppercase;
}

.hero-metrics strong {
  color: var(--soft-gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  line-height: 1;
}

.hero-visual {
  align-items: center;
  display: grid;
  justify-items: center;
  min-height: 540px;
  pointer-events: none;
  position: relative;
  transform: translate3d(
    calc(var(--parallax-x, 0) * 16px),
    calc(var(--parallax-y, 0) * 16px),
    0
  );
  transition: transform 180ms ease-out;
}

.hero-visual::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(234, 214, 156, 0.18), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 32%);
  border: 1px solid rgba(234, 214, 156, 0.18);
  border-radius: 50%;
  content: "";
  height: min(42vw, 540px);
  position: absolute;
  width: min(42vw, 540px);
}

.orbit-ring {
  border: 1px solid rgba(234, 214, 156, 0.3);
  border-radius: 50%;
  height: min(36vw, 480px);
  position: absolute;
  transform-style: preserve-3d;
  width: min(36vw, 480px);
}

.ring-one {
  animation: ringDrift 12s linear infinite;
  transform: rotateX(70deg) rotateZ(20deg);
}

.ring-two {
  animation: ringDriftReverse 16s linear infinite;
  height: min(29vw, 390px);
  transform: rotateX(68deg) rotateZ(-38deg);
  width: min(29vw, 390px);
}

.tin-scene {
  animation: floatTin 7s ease-in-out infinite;
  filter: drop-shadow(0 44px 56px rgba(0, 0, 0, 0.56));
  margin-top: -20px;
  transform-style: preserve-3d;
  z-index: 2;
}

.caviar-tin {
  aspect-ratio: 1;
  border-radius: 50%;
  height: clamp(210px, 24vw, 340px);
  position: relative;
  transform:
    rotateX(64deg)
    rotateZ(calc(-17deg + (var(--parallax-x, 0) * 4deg)))
    translateY(calc(var(--parallax-y, 0) * -8px));
  transform-style: preserve-3d;
}

.stage-caption {
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 6, 0.58);
  border: 1px solid var(--white-line);
  border-radius: 999px;
  bottom: 44px;
  box-shadow: var(--shadow);
  color: var(--muted);
  display: grid;
  gap: 2px;
  min-width: min(360px, 78vw);
  padding: 14px 20px;
  position: absolute;
  right: 8%;
  z-index: 3;
}

.stage-caption span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.stage-caption strong {
  color: var(--ivory);
  font-size: 14px;
  font-weight: 600;
}

.caviar-tin::before {
  background:
    linear-gradient(90deg, #7c682e, #f5dda0 28%, #80672c 58%, #d5b45e);
  border-radius: 50%;
  bottom: -30px;
  content: "";
  height: 54px;
  left: 0;
  position: absolute;
  right: 0;
  transform: translateZ(-30px);
}

.tin-rim,
.tin-surface,
.tin-highlight {
  border-radius: 50%;
  inset: 0;
  position: absolute;
}

.tin-rim {
  background:
    radial-gradient(circle at 45% 38%, rgba(255, 255, 255, 0.72), transparent 4%),
    conic-gradient(from 20deg, #6d5726, #ffe7a7, #8e7130, #f2d689, #5e4a1f, #c7a14a);
  box-shadow:
    inset 0 0 0 10px rgba(255, 239, 183, 0.18),
    inset 0 0 0 22px rgba(7, 7, 6, 0.9);
}

.tin-surface {
  background:
    radial-gradient(circle at 35% 30%, rgba(150, 205, 222, 0.24), transparent 7%),
    radial-gradient(circle at 58% 48%, rgba(255, 255, 255, 0.16), transparent 4%),
    radial-gradient(circle at 50% 50%, #111c1c 0 2px, transparent 2.7px),
    radial-gradient(circle at 20% 20%, #0a0b0a, #050505 68%);
  background-size: auto, auto, 10px 10px, auto;
  inset: 28px;
  overflow: hidden;
  transform: translateZ(10px);
}

.tin-highlight {
  animation: sweepHighlight 5.8s ease-in-out infinite;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 232, 166, 0.24), transparent 44%);
  inset: 28px;
  mix-blend-mode: screen;
  opacity: 0.75;
  transform: translateZ(14px);
}

.primary-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #12100b;
  font-weight: 700;
}

.primary-link:hover {
  background: var(--soft-gold);
}

.section {
  display: grid;
  gap: clamp(24px, 5vw, 84px);
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 72px);
  position: relative;
}

.section::before {
  background: linear-gradient(180deg, transparent, rgba(234, 214, 156, 0.36), transparent);
  content: "";
  height: 72%;
  left: clamp(20px, 5vw, 72px);
  opacity: 0.35;
  position: absolute;
  top: 14%;
  width: 1px;
}

.section-content {
  max-width: 1050px;
  position: relative;
  z-index: 1;
}

h2 {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0 0 24px;
}

h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 8px 0 10px;
}

p {
  color: #d3c8b7;
  margin: 0 0 16px;
  max-width: 840px;
}

img {
  display: block;
  max-width: 100%;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  border: 1px solid var(--white-line);
  border-radius: 8px;
  min-height: 180px;
  padding: 24px;
  transform:
    perspective(900px)
    rotateX(calc(var(--tilt-y, 0) * -1deg))
    rotateY(calc(var(--tilt-x, 0) * 1deg))
    translateY(0);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.feature-grid article:hover {
  border-color: var(--line);
  transform:
    perspective(900px)
    rotateX(calc(var(--tilt-y, 0) * -1deg))
    rotateY(calc(var(--tilt-x, 0) * 1deg))
    translateY(-3px);
}

.visual-gallery {
  border-bottom: 1px solid var(--white-line);
  border-top: 1px solid var(--white-line);
  display: grid;
  gap: 32px;
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.gallery-lead {
  max-width: 860px;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.25fr 0.875fr 0.875fr;
}

.feature-image {
  background: #0d0c0a;
  border: 1px solid var(--white-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
  position: relative;
  transform:
    perspective(1000px)
    rotateX(calc(var(--tilt-y, 0) * -0.65deg))
    rotateY(calc(var(--tilt-x, 0) * 0.65deg));
  transition: border-color 180ms ease, transform 180ms ease;
}

.feature-image:hover {
  border-color: var(--line);
}

.feature-image img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.82) contrast(1.08) brightness(0.86);
  transition: opacity 180ms ease, transform 260ms ease;
  width: 100%;
}

.feature-image.large img {
  aspect-ratio: 16 / 10;
}

.feature-image:hover img {
  opacity: 1;
  filter: saturate(0.92) contrast(1.12) brightness(0.94);
  transform: scale(1.025);
}

.feature-image figcaption {
  background: linear-gradient(180deg, rgba(7, 7, 6, 0), rgba(7, 7, 6, 0.92));
  bottom: 0;
  color: var(--soft-gold);
  font-size: 13px;
  font-weight: 700;
  left: 0;
  padding: 42px 20px 18px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
}

.dark-band {
  background:
    radial-gradient(ellipse at 88% 24%, rgba(199, 161, 74, 0.1), transparent 34%),
    var(--near-black);
  border-bottom: 1px solid var(--white-line);
  border-top: 1px solid var(--white-line);
}

.muted-band {
  background:
    linear-gradient(135deg, rgba(234, 214, 156, 0.045), transparent 32%),
    #14120f;
}

.important-section {
  background:
    linear-gradient(180deg, rgba(199, 161, 74, 0.08), rgba(7, 7, 6, 0)),
    var(--black);
}

.split-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-panel {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(199, 161, 74, 0.11), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--white-line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  margin: 0 0 32px;
  overflow: hidden;
  position: relative;
}

.editorial-panel::after {
  animation: borderGlow 6s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(234, 214, 156, 0.22), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.editorial-panel img {
  filter: saturate(0.82) contrast(1.08) brightness(0.88);
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
}

.editorial-panel div {
  align-self: center;
  padding: clamp(26px, 4vw, 48px);
}

.editorial-panel h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 16px;
}

ul {
  border-left: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0 0 0 22px;
}

li {
  color: #ded4c4;
  margin: 0 0 14px;
}

[dir="rtl"] body {
  font-family: Khalifah, "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  text-align: right;
}

[dir="rtl"] .brand-mark span,
[dir="rtl"] h1,
[dir="rtl"] h2 {
  font-family: Khalifah, "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
}

[dir="rtl"] .proposal-header,
[dir="rtl"] .closing-section {
  background-position: center;
}

[dir="rtl"] .hero,
[dir="rtl"] .section-content,
[dir="rtl"] .closing-section h2,
[dir="rtl"] p {
  margin-left: 0;
  margin-right: 0;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .section-label,
[dir="rtl"] .feature-grid article span,
[dir="rtl"] .timeline article span,
[dir="rtl"] .brand-mark small {
  letter-spacing: 0;
}

[dir="rtl"] ul {
  border-left: 0;
  border-right: 1px solid var(--line);
  padding: 0 22px 0 0;
}

[dir="rtl"] .tech-table div {
  direction: rtl;
}

[dir="rtl"] .feature-image figcaption {
  left: 0;
  right: 0;
  text-align: right;
}

[dir="rtl"] .editorial-panel h3 {
  font-family: Khalifah, "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
}

[dir="rtl"] .scroll-progress {
  left: auto;
  right: 0;
  transform-origin: right;
}

[dir="rtl"] .section::before {
  left: auto;
  right: clamp(20px, 5vw, 72px);
}

@keyframes floatTin {
  0%,
  100% {
    transform: translateY(0) rotateZ(0deg);
  }

  50% {
    transform: translateY(-14px) rotateZ(1.4deg);
  }
}

@keyframes ringDrift {
  0% {
    transform: rotateX(70deg) rotateZ(20deg);
  }

  100% {
    transform: rotateX(70deg) rotateZ(380deg);
  }
}

@keyframes ringDriftReverse {
  0% {
    transform: rotateX(68deg) rotateZ(-38deg);
  }

  100% {
    transform: rotateX(68deg) rotateZ(-398deg);
  }
}

@keyframes sweepHighlight {
  0%,
  100% {
    transform: translateX(-24%) translateZ(14px);
  }

  50% {
    transform: translateX(24%) translateZ(14px);
  }
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.72;
  }
}

.pill-list,
.next-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 28px;
}

.pill-list span,
.next-step-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ivory);
  padding: 9px 14px;
}

.tech-table {
  border: 1px solid var(--white-line);
  border-radius: 8px;
  overflow: hidden;
}

.tech-table div {
  display: grid;
  gap: 18px;
  grid-template-columns: 180px 1fr;
  padding: 18px 20px;
}

.tech-table div + div {
  border-top: 1px solid var(--white-line);
}

.tech-table strong {
  color: var(--soft-gold);
}

.tech-table span {
  color: #ded4c4;
}

.timeline {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
}

.timeline article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.timeline article p,
.timeline-total {
  color: var(--soft-gold);
  font-weight: 700;
}

.closing-section {
  background:
    linear-gradient(90deg, rgba(7, 7, 6, 0.97), rgba(7, 7, 6, 0.82)),
    url("https://images.pexels.com/photos/8112435/pexels-photo-8112435.jpeg?auto=compress&cs=tinysrgb&w=1800");
  background-position: center right;
  background-size: cover;
  border-top: 1px solid var(--line);
  padding: clamp(70px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.closing-section h2 {
  max-width: 820px;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--white-line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
}

.footer a {
  color: var(--soft-gold);
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    gap: 18px;
    border-radius: 22px;
  }

  .nav,
  .hero,
  .section,
  .gallery-grid,
  .editorial-panel,
  .split-list,
  .feature-grid,
  .feature-grid.two,
  .feature-grid.three,
  .timeline {
    grid-template-columns: 1fr;
  }

  .section {
    gap: 18px;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-visual::before,
  .orbit-ring {
    height: min(78vw, 440px);
    width: min(78vw, 440px);
  }

  .ring-two {
    height: min(62vw, 350px);
    width: min(62vw, 350px);
  }
}

@media (max-width: 620px) {
  .nav {
    display: grid;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-content::before {
    left: -14px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics span {
    min-height: 82px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .caviar-tin {
    height: clamp(190px, 58vw, 270px);
  }

  .stage-caption {
    bottom: 12px;
    right: auto;
  }

  .visual-gallery {
    padding-top: 54px;
  }

  .feature-image.large img,
  .feature-image img {
    aspect-ratio: 4 / 3;
  }

  .tech-table div {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    display: grid;
    gap: 10px;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .proposal-header,
  .closing-section,
  .dark-band,
  .muted-band,
  .important-section {
    background: #fff;
    color: #111;
  }

  .nav-actions,
  .hero-actions,
  .footer a {
    display: none;
  }

  p,
  li,
  .tech-table span {
    color: #333;
  }

  .section,
  .closing-section {
    break-inside: avoid;
    padding: 38px 0;
  }

  .hero-visual {
    display: none;
  }

  .pearl-field {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
