:root {
  color-scheme: light;
  --ink: #11110f;
  --paper: #f7f4ec;
  --paper-deep: #ebe4d2;
  --signal: #e33b26;
  --teal: #0f7f78;
  --gold: #d8a936;
  --quiet: #6b6559;
  --line: rgba(17, 17, 15, 0.14);
  --max: 1180px;
  font-family: "Geeza Pro", "SF Arabic", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 15, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 36px, var(--max));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand span {
  overflow: hidden;
  max-width: 34ch;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.78);
}

.nav-links a {
  min-height: 40px;
  padding: 7px 14px;
  color: var(--quiet);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: var(--paper-deep);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: min(100% - 36px, var(--max));
  min-height: calc(100svh - 220px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 52px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--signal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 12.5ch;
  margin-bottom: 26px;
  font-family: "Noto Nastaliq Urdu", "Geeza Pro", "SF Arabic", serif;
  font-size: clamp(3.15rem, 6.9vw, 6.25rem);
  font-weight: 800;
  line-height: 1.42;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4.4vw, 4.8rem);
  line-height: 1.18;
}

.hero-text {
  max-width: 42rem;
  margin-bottom: 30px;
  color: #39352f;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-weight: 900;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(227, 59, 38, 0.24);
  outline-offset: 2px;
}

.hero-art {
  position: relative;
  min-height: clamp(320px, 42vw, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(227, 59, 38, 0.15), transparent 38%),
    linear-gradient(315deg, rgba(15, 127, 120, 0.16), transparent 42%),
    var(--ink);
  isolation: isolate;
}

.hero-art::before,
.hero-art::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(247, 244, 236, 0.2);
  transform: rotate(-12deg);
}

.hero-art::before {
  inset: 13%;
}

.hero-art::after {
  inset: 22% 8% 18% 18%;
}

.wordmark {
  position: absolute;
  top: 50%;
  right: 50%;
  z-index: 3;
  width: min(82%, 760px);
  height: auto;
  transform: translate(50%, -50%) rotate(-3deg);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}

.strike-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  opacity: 0.88;
}

.strike-grid span {
  border-left: 1px solid rgba(247, 244, 236, 0.12);
  background: linear-gradient(180deg, transparent, rgba(216, 169, 54, 0.08), transparent);
}

.impact-line {
  position: absolute;
  right: -12%;
  z-index: 2;
  width: 128%;
  height: 3px;
  background: var(--signal);
  transform-origin: right center;
}

.line-one {
  top: 31%;
  transform: rotate(-18deg);
}

.line-two {
  top: 52%;
  height: 8px;
  background: var(--gold);
  transform: rotate(-8deg);
}

.line-three {
  top: 69%;
  background: var(--teal);
  transform: rotate(9deg);
}

.section {
  border-top: 1px solid var(--line);
  padding: clamp(72px, 9vw, 124px) max(18px, calc((100vw - var(--max)) / 2));
}

.section-light {
  background: rgba(235, 228, 210, 0.74);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.section p,
.rhythm-layout p,
.phrase-section p {
  max-width: 45rem;
  margin-bottom: 0;
  color: #39352f;
}

.rhythm-section {
  background: var(--ink);
  color: var(--paper);
}

.rhythm-section .section-kicker,
.rhythm-section p {
  color: #e4dcca;
}

.rhythm-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.1fr) minmax(260px, 0.7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.beat-strip {
  display: grid;
  grid-template-columns: 0.8fr 0.55fr 1.35fr 0.55fr 0.8fr 1.35fr;
  align-items: center;
  gap: 12px;
  min-height: 220px;
}

.beat {
  display: block;
  height: 42px;
  background: var(--paper);
}

.beat.tall {
  height: 168px;
  background: var(--signal);
}

.beat.wide {
  height: 88px;
  background: var(--gold);
}

.phrase-section {
  min-height: 62svh;
  background: var(--paper);
  text-align: center;
}

.phrase-section h2 {
  max-width: 100%;
  margin: 0 auto 26px;
  font-family: "Noto Nastaliq Urdu", "Geeza Pro", "SF Arabic", serif;
  font-size: clamp(3.4rem, 10vw, 9rem);
}

.phrase-section p {
  margin-inline: auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 36px, var(--max));
  min-height: 96px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.92rem;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1 1 0;
    text-align: center;
  }

  .hero,
  .section-grid,
  .rhythm-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-art {
    min-height: 380px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .brand span {
    max-width: 22ch;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 320px;
  }

  .beat-strip {
    min-height: 160px;
    gap: 8px;
  }

  .beat.tall {
    height: 120px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .impact-line {
    animation: strike-pulse 5.8s ease-in-out infinite;
  }

  .line-two {
    animation-delay: 0.4s;
  }

  .line-three {
    animation-delay: 0.8s;
  }
}

@keyframes strike-pulse {
  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}
