/* Editorial layout using the existing Al Saab marketplace brand tokens. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
.market-home {
  background: var(--bg);
  color: var(--ink);
}
.market-home .market-shell {
  position: relative;
  width: calc(100% - 72px);
  max-width: 1440px;
  padding: 0;
  margin: 36px auto;
  border: 3px solid var(--wash);
  border-radius: 34px;
  background: var(--white);
  box-shadow: 0 28px 100px #172d2810;
}
.market-home .market-nav {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  margin: 0;
  padding: 26px 40px;
  background: transparent;
  border-radius: 0;
  min-height: 102px;
}
.market-home .market-nav nav {
  width: auto;
  gap: 32px;
  font-size: 15px;
}
.market-home .market-nav nav a {
  color: #f2f0e9;
}
.market-home .market-nav nav a[aria-current] {
  padding: 8px 16px;
  background: #f3efe5;
  color: #181914;
  border-radius: 24px;
}
.market-home .market-brand {
  justify-content: flex-start;
  width: 160px;
}
.market-home .market-nav > .btn {
  width: auto;
  padding: 12px 20px;
  min-height: 44px;
  font-size: 15px;
  background: var(--gold);
}
.market-home .market-nav > .btn:hover {
  background: var(--wash);
}
.market-hero {
  height: 700px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
}
.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-photo {
  object-position: 50% 57%;
}
.hero-shade {
  z-index: -1;
  background: linear-gradient(180deg, #0b0c0b8c 0%, #0b0c0b10 42%, #0b0c0b20 59%, #0b0c0bc9 100%);
}
.hero-title {
  position: absolute;
  inset: 133px 40px auto;
  text-align: center;
}
.hero-title p {
  font-size: 14px;
  letter-spacing: 2px;
  color: #ece5d8;
  margin-bottom: 12px;
}
.market-home .hero-title h1 {
  font-size: clamp(72px, 10.8vw, 162px);
  line-height: 1.17;
  color: #fff7e8d4;
  font-weight: 800;
  letter-spacing: -5px;
  white-space: nowrap;
}
.hero-title > span {
  display: block;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #f3eadc;
  margin-top: 7px;
}
.hero-bottom {
  position: absolute;
  bottom: 38px;
  right: 40px;
  left: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: end;
}
.hero-caption h2 {
  font-size: 29px;
  line-height: 1.22;
  font-weight: 500;
  color: white;
  margin-bottom: 14px;
}
.hero-caption p {
  font-size: 14px;
  max-width: 245px;
  color: #dddace;
  line-height: 1.6;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  border-radius: 40px;
  padding: 8px 22px 8px 8px;
  background: var(--gold);
  color: var(--black);
  font-size: 17px;
  font-weight: 700;
  transition:
    transform 0.25s,
    background 0.25s;
  min-height: 58px;
}
.hero-cta span {
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--wash);
  width: 43px;
  height: 43px;
  border-radius: 50%;
  font-size: 26px;
}
.hero-cta:hover {
  transform: translateY(-3px);
  background: var(--wash);
}
.hero-notes {
  justify-self: end;
  display: flex;
  flex-direction: column;
  max-width: 280px;
  gap: 10px;
  font-size: 15px;
}
.hero-notes > span {
  background: #0b0c0b66;
  backdrop-filter: blur(14px);
  border: 1px solid #e5d4b522;
  border-radius: 12px;
  padding: 14px 20px;
  color: #f4ecdf;
}
.hero-notes b {
  color: #d9bc7c;
  float: left;
  margin-right: 30px;
}
.hero-notes small {
  font-size: 10px;
  color: #d6d2c7;
}
.market-content {
  padding: 40px 40px 12px;
}
.overline {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--petrol);
  font-weight: 500;
  margin-bottom: 12px;
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.market-home .collection-heading h2,
.market-home .section-heading h2 {
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
}
.market-home .pro-carousel {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 36px;
}
.market-home .pro-viewport {
  background: var(--wash);
  border: 1px solid #c6a56740;
  border-radius: 18px;
}
.market-home .pro-slide {
  grid-template-columns: 1.45fr 1fr;
  gap: 40px;
  padding: 0;
  background: none;
  min-height: 380px;
}
.market-home .pro-slide > img {
  height: 400px;
  border-radius: 18px;
  width: 100%;
  object-fit: cover;
}
.market-home .pro-copy {
  padding: 28px 26px 28px 0;
  gap: 16px;
  position: relative;
}
.market-home .pro-copy h2 {
  color: var(--ink);
  font-size: 38px;
  line-height: 1.22;
  font-weight: 500;
  max-width: 360px;
}
.market-home .badge {
  background: var(--gold);
  color: var(--black);
  border-radius: 6px;
  font-size: 11px;
  padding: 5px 10px;
}
.market-home .pro-copy > .badge {
  position: absolute;
  left: 24px;
  top: 24px;
}
.market-home .pro-copy .eyebrow {
  font-size: 13px;
  padding-left: 100px;
  color: var(--muted);
}
.market-home .pro-description {
  font-size: 15px;
  color: var(--muted);
  max-width: 360px;
  line-height: 1.6;
}
.market-home .metrics {
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.market-home .metrics strong {
  color: var(--ink);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.3;
}
.market-home .metrics small {
  font-size: 12px;
  color: var(--muted);
}
.market-home .pro-copy > .btn {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--black);
  padding: 11px 18px;
  font-size: 14px;
  min-height: 42px;
}
.market-home .pro-copy > .btn:hover {
  background: var(--black);
  color: var(--white);
}
.market-home .pro-controls {
  height: auto;
  gap: 10px;
  flex-shrink: 0;
}
.market-home .pro-controls .icon-btn {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.market-home .pro-controls .dot {
  background: var(--line);
}
.market-home .pro-controls .dot.active {
  background: var(--petrol);
}
.market-home .project-collection {
  scroll-margin-top: 28px;
}
.market-home .section-heading select {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 32px;
  font-size: 13px;
  padding: 10px 18px;
  min-height: 40px;
  width: 175px;
}
.market-home option {
  color: var(--ink);
  background: var(--white);
}
.market-home .search-panel {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-top: 28px;
  margin-bottom: 24px;
  gap: 18px;
}
.market-home .search-row {
  align-items: end;
  gap: 18px;
}
.market-home .search-row label {
  color: var(--muted);
  font-size: 12px;
}
.market-home .search-row input,
.market-home .search-row select {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  min-height: 46px;
  font-size: 14px;
}
.market-home input::placeholder {
  color: var(--muted);
}
.market-home .search-row .btn {
  min-height: 46px;
  border-radius: 8px;
  font-size: 15px;
  padding: 12px 28px;
  gap: 16px;
}
.market-home .chips {
  gap: 8px;
}
.market-home .chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 36px;
  padding: 8px 23px;
  font-size: 13px;
}
.market-home .chip.active {
  background: var(--petrol);
  color: var(--white);
  border-color: var(--petrol);
}
.market-home .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.market-home .project-card {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 12px 20px;
  gap: 16px;
  position: relative;
  transition:
    transform 0.35s,
    border-color 0.35s;
}
.market-home .project-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}
.market-home .project-card .cover {
  height: auto;
  aspect-ratio: 1.75;
  object-fit: cover;
  border-radius: 12px;
  transition: filter 0.3s;
}
.market-home .project-card > a:hover .cover {
  filter: brightness(1.08);
}
.market-home .project-card > h3,
.market-home .project-card > .meta,
.market-home .project-card > .metrics,
.market-home .project-card > .card-bottom {
  margin-right: 12px;
  margin-left: 12px;
}
.market-home .project-card h3 {
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
}
.market-home .project-card .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: -9px;
}
.market-home .card-bottom .btn {
  background: var(--wash);
  border: 1px solid #c6a56755;
  color: var(--ink);
  font-size: 14px;
  min-height: 40px;
  padding: 10px 18px;
}
.market-home .icon-btn {
  background: var(--mint);
  color: var(--petrol);
}
.demo-badge {
  display: inline-flex;
  background: #f3e9d3;
  color: #5e502e;
  font-size: 12px;
  border-radius: 20px;
  padding: 6px 12px;
  align-self: flex-start;
}
.market-home .project-card > .demo-badge {
  position: absolute;
  right: 26px;
  top: 26px;
  background: #f7f5efed;
  color: var(--ink);
  backdrop-filter: blur(10px);
  border: 1px solid var(--white);
}
.demo-notice {
  margin: 20px 0;
  padding: 16px 22px;
  background: #f1e6ce;
  border: 1px solid #c6a567;
  border-radius: 12px;
  font-size: 16px;
  color: #564626;
}
.market-home .demo-inline {
  font-size: 11px;
  color: var(--muted);
}
.market-home .empty {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}
.market-home .empty h2 {
  color: var(--ink);
}
.market-home .pagination {
  margin: 24px 0;
}
.market-home .empty-symbol {
  background: var(--wash);
  border-color: var(--gold);
  color: var(--ink);
}
.market-footer {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  padding: 40px;
  margin-top: 60px;
}
.market-home .market-footer {
  border-radius: 26px;
  margin: 0 -1px -1px;
  padding: 40px;
  border-color: var(--line);
  background: var(--bg);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 100px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-intro h2 {
  font-size: 48px;
  line-height: 1.13;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
}
.footer-intro h2 span {
  color: var(--petrol);
}
.footer-intro > p:not(.overline) {
  color: var(--muted);
  font-size: 15px;
  max-width: 320px;
  margin-bottom: 24px;
  line-height: 1.8;
}
.footer-intro > .btn {
  font-size: 14px;
  min-height: 46px;
  gap: 40px;
  padding: 12px 18px;
}
.feedback-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.feedback-form h3 {
  font-size: 25px;
  color: var(--ink);
  font-weight: 500;
  margin-top: -12px;
}
.feedback-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.feedback-form label {
  font-size: 12px;
  color: var(--muted);
  gap: 6px;
}
.feedback-form input,
.feedback-form textarea {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 42px;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 9px;
}
.feedback-form textarea {
  min-height: 80px;
}
.feedback-form .btn {
  align-self: flex-start;
  background: var(--gold);
  color: var(--black);
  font-size: 14px;
  min-height: 42px;
  gap: 35px;
  padding: 10px 18px;
}
.feedback-status {
  font-size: 14px;
  color: var(--ink);
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.footer-contact > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
.footer-contact small {
  color: var(--muted);
  font-size: 12px;
}
.footer-logo {
  width: 125px;
  flex-shrink: 0;
}
.footer-logo img {
  filter: brightness(0);
}
.footer-contact .text-link {
  color: var(--petrol);
  font-size: 14px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.market-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12px;
}
.market-footer a:hover {
  color: var(--petrol);
}
.market-home :focus-visible,
.market-footer :focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 5px;
}
.market-enter .market-hero {
  animation: hero-reveal 0.9s ease both;
}
.market-enter .hero-title {
  animation: hero-title-in 1.2s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.market-enter .hero-bottom {
  animation: hero-reveal 0.85s 0.45s ease both;
}
.market-home .slide-enter {
  animation: featured-in 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes hero-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes hero-title-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes featured-in {
  from {
    opacity: 0.3;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (min-width: 1600px) {
  .market-hero {
    height: 760px;
  }
  .hero-title {
    top: 155px;
  }
  .hero-title h1 {
    font-size: 170px;
  }
}
@media (max-width: 1100px) {
  .market-home .market-shell {
    width: calc(100% - 40px);
    margin: 20px auto;
  }
  .market-home .market-nav {
    padding: 22px;
  }
  .market-home .market-nav nav {
    gap: 16px;
    font-size: 13px;
  }
  .market-hero {
    height: 640px;
  }
  .hero-title {
    right: 24px;
    left: 24px;
    top: 150px;
  }
  .hero-bottom {
    right: 24px;
    left: 24px;
    gap: 24px;
  }
  .hero-caption h2 {
    font-size: 25px;
  }
  .hero-notes {
    font-size: 12px;
  }
  .hero-cta {
    font-size: 15px;
    gap: 16px;
  }
  .market-content {
    padding: 32px 24px 12px;
  }
  .market-home .pro-copy h2 {
    font-size: 30px;
  }
  .market-home .pro-slide {
    gap: 24px;
    grid-template-columns: 1.15fr 1fr;
  }
  .market-home .pro-slide > img {
    height: 400px;
  }
  .footer-top {
    gap: 45px;
  }
  .market-home .market-footer {
    padding: 32px 24px;
  }
  .market-home .collection-heading h2,
  .market-home .section-heading h2 {
    font-size: 27px;
  }
}
@media (max-width: 760px) {
  .market-home .market-shell {
    width: calc(100% - 24px);
    margin: 12px auto;
    border-width: 2px;
    border-radius: 24px;
  }
  .market-hero {
    height: 660px;
    border-radius: 21px;
  }
  .market-home .market-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 20px;
    min-height: 0;
  }
  .market-home .market-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 115px;
    height: 50px;
  }
  .market-home .market-brand img {
    width: 115px;
  }
  .market-home .market-nav > .btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 12px;
    padding: 10px 14px;
    min-height: 38px;
  }
  .market-home .market-nav nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    font-size: 12px;
  }
  .market-home .market-nav nav a[aria-current] {
    padding: 6px 10px;
  }
  .hero-title {
    top: 168px;
    right: 16px;
    left: 16px;
  }
  .market-home .hero-title h1 {
    font-size: clamp(39px, 10vw, 73px);
    letter-spacing: -1px;
  }
  .hero-title p {
    font-size: 10px;
    margin-bottom: 15px;
  }
  .hero-title > span {
    font-size: 16px;
    margin-top: 10px;
  }
  .hero-photo {
    object-position: 42% center;
  }
  .hero-bottom {
    bottom: 24px;
    right: 22px;
    left: 22px;
    grid-template-columns: 1fr auto;
    gap: 24px 10px;
  }
  .hero-caption {
    grid-column: 1/-1;
    max-width: 300px;
  }
  .hero-caption h2 {
    font-size: 29px;
  }
  .hero-caption p {
    font-size: 13px;
    max-width: 280px;
  }
  .hero-cta {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    font-size: 13px;
    padding: 6px 14px 6px 6px;
    min-height: 46px;
    gap: 16px;
  }
  .hero-cta span {
    width: 34px;
    height: 34px;
    font-size: 23px;
  }
  .hero-notes {
    grid-row: 2;
    grid-column: 2;
    max-width: 120px;
  }
  .hero-notes > span {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 10px;
  }
  .hero-notes > span:last-of-type,
  .hero-notes b {
    display: none;
  }
  .hero-notes small {
    font-size: 8px;
    line-height: 1.5;
  }
  .market-content {
    padding: 28px 18px 8px;
  }
  .collection-heading {
    display: block;
    margin-bottom: 18px;
  }
  .market-home .collection-heading h2,
  .market-home .section-heading h2 {
    font-size: 25px;
  }
  .market-home .pro-controls {
    justify-content: flex-start;
    margin-top: 18px;
  }
  .market-home .pro-slide {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
  }
  .market-home .pro-slide > img {
    height: auto;
    aspect-ratio: 1.5;
    border-radius: 14px;
  }
  .market-home .pro-copy {
    padding: 24px 18px;
    width: 100%;
    gap: 14px;
  }
  .market-home .pro-copy > .badge {
    top: 24px;
    left: 18px;
  }
  .market-home .pro-copy h2 {
    font-size: 31px;
  }
  .market-home .pro-description {
    font-size: 14px;
  }
  .market-home .pro-carousel {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }
  .market-home .metrics strong {
    font-size: 24px;
  }
  .market-home .metrics {
    gap: 12px;
  }
  .market-home .section-heading {
    display: block;
  }
  .market-home .section-heading select {
    margin-top: 20px;
  }
  .market-home .search-panel {
    padding: 16px;
    gap: 16px;
    margin-top: 18px;
  }
  .market-home .search-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
  }
  .market-home .search-row > label:first-child {
    grid-column: 1/-1;
  }
  .market-home .search-row > .btn {
    grid-column: 1/-1;
    min-height: 42px;
  }
  .market-home .search-row input,
.market-home .search-row select {
    min-width: 0;
    padding: 10px;
    font-size: 13px;
  }
  .market-home .chips {
    gap: 6px;
  }
  .market-home .chip {
    padding: 7px 13px;
    font-size: 12px;
    min-height: 34px;
  }
  .market-home .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .market-home .project-card .cover {
    aspect-ratio: 1.5;
  }
  .market-home .project-card h3 {
    font-size: 25px;
  }
  .market-home .market-footer,
  .market-footer {
    padding: 28px 20px;
    border-radius: 22px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 28px;
  }
  .footer-intro h2 {
    font-size: 39px;
  }
  .feedback-fields {
    grid-template-columns: 1fr;
  }
  .footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }
  .footer-contact > div {
    font-size: 12px;
  }
  .footer-contact > .footer-logo {
    width: 115px;
  }
  .footer-bottom {
    display: block;
    line-height: 1.7;
  }
  .market-footer nav {
    font-size: 11px;
    gap: 14px;
    margin-top: 16px;
  }
  .market-home .overline {
    font-size: 10px;
  }
  .demo-notice {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .market-home * {
    animation: none !important;
    transition: none !important;
  }
}
