:root {
  --ink: #1d1712;
  --muted: #76695e;
  --paper: #fff7ef;
  --paper-soft: #f8ecdf;
  --line: rgba(76, 49, 28, 0.16);
  --saffron: #c56a00;
  --saffron-dark: #824000;
  --bronze: #b98a48;
  --nav-bg: rgba(58, 55, 50, 0.74);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #fff7ec;
  background:
    linear-gradient(90deg, rgba(49, 46, 42, 0.90), rgba(77, 72, 65, 0.72)),
    var(--nav-bg);
  border-bottom: 1px solid rgba(229, 219, 202, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #301506;
  background: linear-gradient(135deg, #ffd66d, #f28b18);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.brand strong {
  display: block;
  color: #ff1d12;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.86;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.18), 0 2px 10px rgba(0, 0, 0, 0.26);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 247, 236, 0.72);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 247, 236, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  background: rgba(255, 247, 236, 0.12);
  color: #fff;
}

.language-switcher {
  position: relative;
}

.language-button,
.language-menu button {
  font: inherit;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(255, 247, 236, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff7ec;
  background: rgba(255, 247, 236, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.language-button:hover {
  background: rgba(255, 247, 236, 0.14);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: 210px;
  max-height: min(460px, calc(100vh - 90px));
  overflow: auto;
  border: 1px solid rgba(229, 219, 202, 0.22);
  border-radius: 8px;
  padding: 8px;
  background: rgba(49, 46, 42, 0.96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.language-switcher.open .language-menu {
  display: grid;
  gap: 3px;
}

.language-menu button {
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 10px 11px;
  color: rgba(255, 247, 236, 0.88);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 750;
}

.language-menu button:hover,
.language-menu button.active {
  color: #fff;
  background: rgba(255, 247, 236, 0.12);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .site-header,
html[dir="rtl"] .hero,
html[dir="rtl"] .site-footer {
  direction: ltr;
}

html[dir="rtl"] .section {
  direction: rtl;
}

html[dir="rtl"] .section p,
html[dir="rtl"] .card p,
html[dir="rtl"] .project-card p,
html[dir="rtl"] .link-columns a {
  text-align: right;
}

html[dir="rtl"] .language-menu button {
  text-align: right;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 247, 236, 0.24);
  border-radius: 50%;
  background: rgba(255, 247, 236, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff7ec;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #15110d;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 10, 6, 0.18), rgba(15, 10, 6, 0.04) 42%, rgba(15, 10, 6, 0.42)),
    radial-gradient(circle at 68% 64%, rgba(255, 173, 70, 0.06), transparent 34%);
}

.hero-copy {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  top: clamp(58px, 8vh, 98px);
  width: min(390px, calc(100% - 40px));
  color: #fff7ef;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: #f0a93d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ff1d12;
  font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
  font-size: clamp(30px, 4.1vw, 64px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.86;
  text-transform: none;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.42), 0 2px 14px rgba(0, 0, 0, 0.38);
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(30px, 3.8vw, 54px);
  line-height: 1;
}

.hero p:not(.eyebrow) {
  max-width: 25rem;
  margin: 14px 0 0;
  color: rgba(255, 247, 239, 0.88);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.45;
}

.hero-actions {
  position: absolute;
  right: 0;
  top: clamp(390px, 51vh, 560px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(190px, calc(100% - 40px));
  overflow: hidden;
  border: 1px solid rgba(238, 229, 214, 0.24);
  border-radius: 8px;
  background: rgba(55, 53, 49, 0.70);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.hero-actions a {
  min-height: 44px;
  border-bottom: 1px solid rgba(238, 229, 214, 0.18);
  padding: 12px 16px;
  color: #fff7ef;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.hero-actions a:last-child {
  border-bottom: 0;
}

.hero-actions a:hover {
  background: rgba(80, 76, 69, 0.84);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
}

.section h2 {
  color: var(--ink);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
}

.section p {
  max-width: 860px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.intro {
  background: linear-gradient(180deg, #fff7ef, #f7eadc);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.feature-list,
.tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-list {
  padding-top: 8px;
}

.feature-list span,
.tracks span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--saffron-dark);
  background: rgba(255, 255, 255, 0.56);
  font-weight: 800;
}

.cards,
.project-grid,
.download-grid,
.link-columns {
  display: grid;
  gap: 18px;
  margin-top: clamp(30px, 5vw, 56px);
}

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

.card,
.project-card,
.download-card,
.link-columns > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 50px rgba(61, 39, 22, 0.08);
}

.card {
  padding: 24px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(197, 106, 0, 0.10);
  font-size: 22px;
}

.card h3,
.project-card h3,
.download-card strong,
.link-columns h3 {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.card p,
.project-card p,
.download-card span {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.projects {
  background: #ece4da;
}

.project-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.project-card {
  padding: clamp(24px, 4vw, 38px);
}

.project-card-primary {
  background: linear-gradient(135deg, rgba(255, 247, 239, 0.82), rgba(238, 221, 199, 0.82));
}

.project-label {
  margin: 0;
  color: var(--saffron-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card a,
.download-card a,
.link-columns a,
.legal a {
  color: var(--saffron-dark);
  font-weight: 850;
}

.project-card a {
  display: inline-flex;
  margin-top: 22px;
}

.music {
  background: #2a1a11;
  color: #fff7ef;
}

.music h2,
.music p {
  color: #fff7ef;
}

.music p {
  color: rgba(255, 247, 239, 0.78);
}

.tracks {
  margin-top: 28px;
}

.tracks span {
  border-color: rgba(255, 218, 168, 0.25);
  color: #ffe0a6;
  background: rgba(255, 255, 255, 0.07);
}

.about {
  background: var(--paper);
}

.downloads {
  background: #f2e6d8;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
  padding: 24px;
}

.download-card strong {
  display: block;
  margin: 0;
}

.download-card a {
  margin-top: auto;
}

.links {
  background: #fff7ef;
}

.link-columns > div {
  padding: 24px;
}

.link-columns h3 {
  margin-top: 0;
}

.link-columns a {
  display: block;
  margin-top: 12px;
}

.legal {
  background: #f7eadc;
}

.legal + .legal {
  background: #fff7ef;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 6vw, 88px);
  color: #fff7ef;
  background: #1d1712;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero-actions {
    width: 152px;
  }

  .hero-actions a {
    min-height: 38px;
    padding: 10px 13px;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 62px;
    padding: 10px 14px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    top: 62px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(229, 219, 202, 0.22);
    border-radius: 8px;
    background: rgba(49, 46, 42, 0.94);
    backdrop-filter: blur(14px);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-radius: 6px;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 27px;
  }

  .language-switcher {
    margin-left: auto;
  }

  .language-button {
    max-width: 138px;
    padding-inline: 10px;
  }

  .language-button [data-lang-name] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-menu {
    right: 0;
    width: min(210px, calc(100vw - 24px));
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 53% bottom;
  }

  .hero-copy {
    top: 74px;
    width: min(330px, calc(100% - 34px));
  }

  .hero .eyebrow {
    display: none;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(28px, 8vw, 38px);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
  }

  .hero p:not(.eyebrow) {
    max-width: 17rem;
    margin-top: 10px;
    font-size: 13px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.48);
  }

  .hero-actions {
    right: 0;
    top: auto;
    bottom: 64px;
    width: 132px;
  }

  .hero-actions a {
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .three,
  .project-grid,
  .download-grid,
  .link-columns {
    grid-template-columns: 1fr;
  }

  .card,
  .project-card,
  .download-card,
  .link-columns > div {
    padding: 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (orientation: landscape) and (max-height: 720px) {
  .site-header {
    min-height: 72px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-image {
    object-position: center bottom;
  }

  .hero-copy {
    top: 96px;
    width: min(520px, calc(100% - 48px));
  }

  .hero .eyebrow {
    display: none;
  }

  .hero h1 {
    max-width: 18ch;
    font-size: clamp(30px, 4vw, 42px);
  }

  .hero p:not(.eyebrow) {
    max-width: 34rem;
    font-size: 15px;
  }

  .hero-actions {
    top: auto;
    right: 0;
    bottom: 42px;
    width: 152px;
  }

  .hero-actions a {
    min-height: 38px;
    padding: 10px 13px;
    font-size: 13px;
  }
}
