/* ============================================================
   NOORARASH CHARLIE — Design System
   Palette: midnight navy ground, Sermeh gold, saffron accent
   ============================================================ */

:root {
  /* Ground */
  --bg:        #070a10;
  --bg-2:      #0c111a;
  --bg-3:      #121926;
  --bg-veil:   rgba(7,10,16,.86);

  /* Gold — Sermeh bullion thread */
  --gold:      #c9a84c;
  --gold-lt:   #e3cf8e;
  --gold-dk:   #8f7530;
  --gold-glow: rgba(201,168,76,.22);

  /* Accents drawn from Persian tile */
  --saffron:   #e0952f;
  --lapis:     #2b4a7d;
  --emerald:   #1f5c4a;

  /* Type */
  --ink:       #ece7dc;
  --ink-2:     #a9a396;
  --ink-3:     #6d6759;

  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(201,168,76,.24);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --ease:  cubic-bezier(.16,1,.3,1);
  --ease-io: cubic-bezier(.65,0,.35,1);

  --shell: 1280px;
  --gut:   clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 76px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  /* subtle woven-textile grain over the whole page */
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(201,168,76,.07), transparent 70%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
::selection { background: rgba(201,168,76,.28); color: #fff; }

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

/* ---------- Film grain overlay (whole site) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.015em;
}
.gilt {
  background: linear-gradient(112deg, #8f7530 0%, #c9a84c 26%, #f2e2ad 47%, #c9a84c 68%, #8f7530 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gilt-sweep 9s ease-in-out infinite;
}
@keyframes gilt-sweep {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.eyebrow {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .28em;
  color: var(--gold); font-weight: 500;
}
.lede { font-size: clamp(1rem,1.5vw,1.15rem); color: var(--ink-2); line-height: 1.8; }

/* Ornamental rule */
.rule { display: flex; align-items: center; gap: .9rem; }
.rule::before, .rule::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.rule span { color: var(--gold); font-size: .8rem; }

/* ---------- Layout ---------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.band  { padding-block: clamp(4.5rem, 11vh, 9rem); position: relative; }
.band--tint { background: var(--bg-2); }

.band-head { max-width: 640px; margin-bottom: clamp(2.5rem,5vw,4rem); }
.band-head.center { margin-inline: auto; text-align: center; }
.band-head h2 { font-size: clamp(2.1rem,4.6vw,3.6rem); margin: .75rem 0 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gut);
  background: transparent;
  transition: background .45s var(--ease), border-color .45s var(--ease), height .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: var(--bg-veil);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line);
  height: 64px;
}
.brand {
  font-family: var(--serif); font-size: 1.32rem; letter-spacing: .24em;
  color: var(--gold); font-weight: 500;
}
.brand small {
  display: block; font-family: var(--sans); font-size: .53rem;
  letter-spacing: .34em; color: var(--ink-3); margin-top: .18rem; font-weight: 400;
}
.nav-links { display: flex; gap: 2.1rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .17em;
  color: var(--ink-2); position: relative; padding-block: .4rem;
  transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .4s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; position: relative;
}
.burger span {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--gold);
  transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 890;
  background: var(--bg-veil); backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.drawer.open { opacity: 1; visibility: visible; }
.drawer a {
  font-family: var(--serif); font-size: 2rem; color: var(--ink);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.drawer.open a { opacity: 1; transform: none; }
.drawer a:hover { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2.1rem; font-size: .73rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .17em;
  border-radius: 1px; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s, color .35s, border-color .35s;
}
.btn-gold { background: var(--gold); color: #0a0d13; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 34px var(--gold-glow); }
.btn-ghost { border-color: var(--line-2); color: var(--gold); }
.btn-ghost:hover { background: rgba(201,168,76,.08); transform: translateY(-2px); }
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- Reveal-on-scroll ---------- */
[data-rise] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-rise].in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 4rem 2.25rem; }
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--line);
}
.foot h4 {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .22em;
  color: var(--gold); margin-bottom: 1.1rem; font-weight: 500;
}
.foot ul { list-style: none; display: grid; gap: .6rem; }
.foot ul a { font-size: .87rem; color: var(--ink-2); transition: color .3s; }
.foot ul a:hover { color: var(--gold); }
.foot-base {
  padding-top: 2rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .76rem; color: var(--ink-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .foot-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-rise] { opacity: 1; transform: none; }
  .grain { display: none; }
}
