/*!==========================================================================
 * Desert Palm Digital — brand overrides
 * Loaded after main.css. Fonts, palette, and accent live here; matched to
 * desertpalm.marketing (Antonio/Poppins, black + cream/khaki theme).
 * ==========================================================================*/
:root {
  /* Fonts (same pairing as desertpalm.marketing) */
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Antonio", sans-serif;

  /* Accent: cream + khaki (marketing --theme-color / --theme-color-secondary) */
  --color-accent-primary: #fef2c2;
  --color-accent-dark: #B3AA88;

  /* Dark base matched to marketing (#000 page, #0f0f0f panels, #2a2a2a borders) */
  --color-dark-1: #000000;
  --color-dark-2: #0f0f0f;
  --color-dark-3: #2a2a2a;
  --color-dark-4: #555555;

  /* Light sections: cream paper and khaki paper, warm like the brand */
  --color-light-1: #f4eedc;
  --color-light-2: #e8e0c6;
  --color-ink: #121109;
  --color-ink-2: #3d382c;
  --color-ink-3: #7a7158;
  --xl-color-dark: #121109;
  --h1-color-dark: #121109;
  --h2-color-dark: #121109;
  --h3-color-dark: #121109;
  --h4-color-dark: #121109;
  --h5-color-dark: #121109;
  --paragraph-color-dark: #2e2a20;

  /* Secondary text goes warm khaki like the marketing kickers */
  --color-gray-1: #B3AA88;
  --color-gray-2: #cccccc;

  /* Headings white, body text near-white on dark */
  --xl-color-light: #ffffff;
  --h1-color-light: #ffffff;
  --h2-color-light: #ffffff;
  --h3-color-light: #ffffff;
  --paragraph-color-light: #efefef;

  /* Antonio's descenders need taller lines than Cinzel's or the
     split-text overflow masks clip them */
  --xl-line-height: 1.15;
  --h1-line-height: 1.2;
  --h2-line-height: 1.35;
}

/* Antonio needs a bit of weight; big sizes get tightened like marketing's h1 */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .xl {
  font-weight: 500;
}
h1, .h1, h2, .h2, .xl {
  letter-spacing: -0.02em;
}

/* Text selection */
::selection {
  background-color: var(--color-accent-primary);
  color: var(--color-dark-1);
}
::-moz-selection {
  background-color: var(--color-accent-primary);
  color: var(--color-dark-1);
}

/* Section headline rules (the short divider lines) */
.section__headline {
  background-color: var(--color-accent-primary);
}

/* Link hover on dark-theme sections */
[data-arts-theme-text=light] a:hover,
.header[data-arts-theme-text=light] a:hover {
  color: var(--color-accent-primary);
}

/* Fullscreen overlay menu item hover */
.menu-overlay li a:hover .menu-overlay__item-wrapper {
  color: var(--color-accent-primary);
}

/* Classic menu current/hover underline color */
.menu .menu-item-active > a,
.menu li a:hover {
  color: var(--color-accent-primary);
}

/* Primary cream button (marketing style: cream bg, black label) */
.button_solid.button_gold {
  border-color: var(--color-accent-primary);
  background-color: var(--color-accent-primary);
  color: var(--color-dark-1);
}
.button_solid.button_gold:hover {
  border-color: var(--color-accent-dark);
  background-color: var(--color-accent-dark);
  color: var(--color-dark-1);
}

/* Space between adjacent masthead/CTA buttons */
.section-masthead__wrapper-button .button + .button,
.section-content__wrapper-button .button + .button {
  margin-left: 1em;
}
@media screen and (max-width: 767px) {
  .section-masthead__wrapper-button .button + .button,
  .section-content__wrapper-button .button + .button {
    margin-left: 0;
    margin-top: 1em;
  }
}

/* Buttons on dark backgrounds pick up the accent on hover */
.button_bordered.button_white:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
}
.button_solid.button_white:hover {
  border-color: var(--color-accent-primary);
  background-color: var(--color-accent-primary);
  color: var(--color-dark-1);
}

/* Works page filter underline (invisible dark-on-dark otherwise) */
.filter__underline {
  background-color: var(--color-accent-primary);
}
.filter__item_active {
  color: var(--color-accent-primary);
}

/* Form focus underline */
.input-float__label-focused,
.input-float__input:focus {
  border-color: var(--color-accent-primary);
}

/* Next-project nav: the template dims the link to 0.2, which is fine on
   cream but unreadable white-on-black. Give it real presence on dark. */
[data-arts-theme-text=light] .section-nav-projects__link {
  opacity: 0.65;
}
[data-arts-theme-text=light] .section-nav-projects__subheading {
  color: var(--color-gray-1);
}

/* Logo wordmark */
.logo__text-title {
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo__text-tagline {
  color: var(--color-accent-primary);
}

/*!==========================================================================
 * Hero background video
 * ==========================================================================*/
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* dark filter so the headline stays legible over the footage */
.hero-video__overlay {
  /* heavier on the left where the type sits, lighter on the right so the
     palms still read; plus a floor fade for the label strip */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.66) 50%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 40%);
}
@media screen and (max-width: 767px) {
  .hero-video__overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.7) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 45%);
  }
}

/* Hero composition: left-set display type, actions, and a label strip */
.hero__inner {
  justify-content: center;
}
.hero__content {
  position: relative;
  z-index: 50;
  max-width: 1120px;
  padding-top: 18vh;
  padding-bottom: 20vh;
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2.2rem;
}
.hero__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent-primary);
}
.hero__kicker .small-caps {
  color: #fff;
  letter-spacing: 0.16em;
}
[data-arts-theme-text=light] .hero__title {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(60px, 10.5vw, 164px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #fff;
}
.hero__sub {
  margin-top: 2.2rem;
}
.hero__sub p {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: #efefef;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.2rem;
  margin-top: 2.6rem;
}
.hero__actions .button + .hero__link {
  margin-left: 0;
}
[data-arts-theme-text=light] .hero__link {
  font-size: 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}
[data-arts-theme-text=light] .hero__link:hover {
  color: var(--color-accent-primary);
  border-bottom-color: var(--color-accent-primary);
}
.hero__foot {
  position: absolute;
  left: var(--gutter-horizontal);
  right: var(--gutter-horizontal);
  bottom: 34px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.hero__foot .section-masthead__meta-item {
  padding: 0;
  margin: 0;
}
.hero__foot .section-masthead__meta-item:after {
  display: none;
}
@media screen and (max-width: 767px) {
  .hero__content {
    padding-top: 22vh;
    padding-bottom: 24vh;
  }
  .hero__kicker {
    margin-bottom: 1.6rem;
  }
  .hero__sub p br {
    display: none;
  }
  .hero__actions {
    margin-top: 2rem;
    gap: 1.2rem;
  }
  .hero__foot {
    flex-direction: column;
    gap: 6px;
    bottom: 24px;
  }
}

/*!==========================================================================
 * Contact modal (curtain-style, matches the fullscreen menu effect)
 * ==========================================================================*/
.contact-modal {
  /* root stays rendered so GSAP can resolve percent transforms on the
     curtain; children manage their own visibility */
  pointer-events: none;
}
.contact-modal__wrapper,
.contact-modal__close {
  pointer-events: auto;
}
.contact-modal__curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateY(100%);
  margin: auto;
  z-index: 560;
  overflow: hidden;
}
.contact-modal__wrapper {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 570;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  padding-top: 80px;
  padding-bottom: 40px;
}
.contact-modal__close {
  position: fixed;
  top: 25px;
  right: 30px;
  z-index: 580;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.contact-modal__close:before,
.contact-modal__close:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  background-color: #fff;
  transition: background-color 0.2s;
}
.contact-modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.contact-modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.contact-modal__close:hover:before,
.contact-modal__close:hover:after {
  background-color: var(--color-accent-primary);
}
.contact-modal__field {
  margin-bottom: 1.5em;
}
.contact-modal .input-float__input {
  color: #fff;
  border-bottom-color: var(--color-dark-3);
}
.contact-modal .input-float__label {
  color: var(--color-gray-1);
}
.contact-modal select.input-float__input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B3AA88' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.contact-modal select.input-float__input option {
  background-color: var(--color-dark-2);
  color: #fff;
}
.contact-modal .form__error {
  display: block;
  margin-top: 0.4em;
  font-size: 12px;
  color: #e0655a;
}
.contact-modal__input_error {
  border-bottom-color: #e0655a !important;
}
.contact-modal__result {
  margin-top: 1.5em;
  color: var(--color-accent-primary);
}
.contact-modal__result_error {
  color: #e0655a;
}
/* honeypot: visually gone, still in the form for bots */
.contact-modal__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Accent-colored text utility (theme cream).
   Uses !important to win over the theme's [data-arts-theme-text=light] heading
   color rules, which have higher specificity than a plain descendant selector. */
.text-accent,
.text-accent h1,
.text-accent h2,
.text-accent h3,
.text-accent h4,
.text-accent .h1,
.text-accent .h2,
.text-accent p,
.text-accent span {
  color: var(--color-accent-primary) !important;
}

/*!==========================================================================
 * Home page layout: section intros, work cards, pillars, ledger, steps
 * ==========================================================================*/

/* Section intros: left heading, right text (Bootstrap row in the markup) */
.section-intro {
  padding-bottom: 2.5rem;
}
.section-link {
  display: inline-block;
  font-size: 15px;
  color: var(--color-accent-primary);
  border-bottom: 1px solid var(--color-dark-3);
  padding-bottom: 2px;
}
[data-arts-theme-text=light] .section-link:hover {
  color: #fff;
  border-bottom-color: var(--color-accent-primary);
}

/* Work cards: screenshot on top, caption underneath (no overlays) */
.work-card {
  display: block;
  color: inherit;
}
.work-card__media {
  background-color: var(--color-dark-2);
  border: 1px solid var(--color-dark-3);
}
.work-card__media .lazy {
  display: block;
}
.work-card__media img {
  display: block;
  width: 100%;
  height: auto;
}
.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-top: 1.1rem;
}
.work-card__title-group {
  min-width: 0;
}
[data-arts-theme-text=light] .work-card__title {
  margin: 0;
  color: #fff;
  transition: color 0.2s;
}
[data-arts-theme-text=light] .work-card:hover .work-card__title {
  color: var(--color-accent-primary);
}
.work-card__summary {
  margin: 0.4em 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-2);
  max-width: 48ch;
}
.work-card__type {
  flex: 0 0 auto;
  padding-top: 0.45em;
  font-size: 13px;
  color: var(--color-gray-1);
  white-space: nowrap;
}
.work-card_featured {
  margin-bottom: 3rem;
}
.work-card_featured .work-card__summary {
  font-size: 17px;
  max-width: 60ch;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 3rem;
}
@media screen and (max-width: 767px) {
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2.5rem;
  }
  .work-card__meta {
    flex-direction: column;
    gap: 0.4rem;
  }
  .work-card__type {
    padding-top: 0;
  }
  .work-card_featured {
    margin-bottom: 2.5rem;
  }
}

/* Pillars: three service columns on hairlines */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--color-dark-3);
}
.pillar {
  padding-top: 1.75rem;
}
[data-arts-theme-text=light] .pillar__title {
  margin: 0 0 0.6em;
  color: #fff;
}
.pillar__text {
  margin: 0;
  font-size: 16px;
  color: var(--color-gray-2);
}
.pillar__examples {
  margin: 1.1em 0 0;
  font-size: 14px;
  color: var(--color-gray-1);
}
[data-arts-theme-text=light] .pillar__examples a {
  color: var(--color-accent-primary);
}
[data-arts-theme-text=light] .pillar__examples a:hover {
  color: #fff;
}
@media screen and (max-width: 991px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 0;
  }
  .pillar {
    padding: 1.5rem 0;
    border-top: 1px solid var(--color-dark-3);
  }
}

/* Included list: two columns of hairline rows */
.included {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-dark-3);
}
.included__note {
  font-size: 15px;
  color: var(--color-gray-2);
}
[data-arts-theme-text=light] .included__note a {
  color: var(--color-accent-primary);
}
.included__list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 2.5rem;
}
.included__list li {
  break-inside: avoid;
  padding: 0.55em 0;
  border-bottom: 1px solid var(--color-dark-3);
  font-size: 15px;
  color: #efefef;
}
@media screen and (max-width: 767px) {
  .included {
    margin-top: 2.5rem;
  }
  .included__list {
    columns: 1;
    margin-top: 0.5rem;
  }
}

/* Ledger: the pricing comparison, set like an itemised bill */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 3.5rem;
}
.ledger__column {
  display: flex;
  flex-direction: column;
}
[data-arts-theme-text=light] .ledger__heading {
  margin: 0 0 0.9em;
  color: #fff;
}
.ledger__rows {
  margin: 0;
  flex: 0 0 auto;
}
.ledger__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9em 0;
  border-top: 1px solid var(--color-dark-3);
  font-size: 15px;
  line-height: 1.5;
}
.ledger__row dt {
  font-weight: 400;
  color: var(--color-gray-1);
}
.ledger__row dd {
  margin: 0;
  text-align: right;
  color: #efefef;
}
.ledger__total {
  margin-top: 0.25rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--color-dark-4);
}
.ledger__total-label {
  font-size: 13px;
  color: var(--color-gray-1);
}
.ledger__total-value {
  margin-top: 0.15em;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: clamp(26px, 2.15vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}
.ledger__total-note {
  margin-top: 0.5em;
  font-size: 15px;
  color: var(--color-gray-2);
}
.ledger__column_agency .ledger__row dd,
.ledger__column_agency .ledger__total-value {
  color: var(--color-gray-2);
}
.ledger__column_dpd .ledger__row dd {
  color: #fff;
}
.ledger__column_dpd .ledger__total {
  border-top-color: var(--color-accent-primary);
}
.ledger__column_dpd .ledger__total-value {
  color: var(--color-accent-primary);
}
@media screen and (max-width: 991px) {
  .ledger {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem 0;
    margin-top: 2.5rem;
  }
}
@media screen and (max-width: 480px) {
  .ledger__row {
    flex-direction: column;
    gap: 0.2em;
  }
  .ledger__row dd {
    text-align: left;
  }
}

/* Steps: the three-stage process (a real sequence, hence the numbers) */
.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 3rem;
  counter-reset: step;
}
.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-dark-3);
}
.step__number {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  color: var(--color-accent-primary);
}
[data-arts-theme-text=light] .step__title {
  margin: 0.6em 0 0.5em;
  color: #fff;
}
.step__text {
  margin: 0;
  font-size: 16px;
  color: var(--color-gray-2);
}
@media screen and (max-width: 991px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 2rem;
  }
  .step {
    padding: 1.5rem 0;
  }
}

/* Reduced motion: the theme's hover zoom is the only non-essential motion here */
@media (prefers-reduced-motion: reduce) {
  .hover-zoom__zoom,
  .hover-zoom__inner {
    transition: none;
  }
  .hover-zoom:hover:not(:focus) .hover-zoom__zoom,
  .hover-zoom:hover:not(:focus) .hover-zoom__inner {
    transform: none;
  }
}

/*!==========================================================================
 * Wordmark logo (cream script, transparent) in the header and footer
 * ==========================================================================*/
.logo__img {
  display: block;
  width: 150px;
  height: auto;
}
.header .logo__img {
  transition: width 0.3s ease;
}
.header_sticky .logo__img {
  width: 120px;
}
.footer .logo__img {
  width: 170px;
}
@media screen and (max-width: 767px) {
  .logo__img,
  .header_sticky .logo__img {
    width: 110px;
  }
  .footer .logo__img {
    width: 140px;
  }
}


/*!==========================================================================
 * Light sections (cream / khaki paper) and photo bands
 * ==========================================================================*/
.section_light .section__headline {
  background-color: var(--color-ink-3);
}
.section_light .section-content__text p,
.section_light .pillar__text,
.section_light .step__text,
.section_light .included__note {
  color: var(--color-ink-2);
}
.section_light .pillar__title,
.section_light .step__title,
.section_light .included__list li {
  color: var(--color-ink);
}
.section_light .pillar__examples {
  color: var(--color-ink-3);
}
.section_light .pillar__examples a,
.section_light .included__note a {
  color: var(--color-ink);
  border-bottom: 1px solid rgba(18, 17, 9, 0.3);
}
.section_light .pillar__examples a:hover,
.section_light .included__note a:hover {
  color: var(--color-ink-3);
  border-bottom-color: var(--color-ink-3);
}
.section_light .pillars,
.section_light .pillar,
.section_light .included,
.section_light .included__list li,
.section_light .step {
  border-color: rgba(18, 17, 9, 0.16);
}
.section_light .step__number {
  color: var(--color-ink-3);
}

/* Photo band: full-bleed image with parallax and one line of type */
.band {
  position: relative;
  overflow: hidden;
  height: 64vh;
  min-height: 420px;
  max-height: 760px;
  background-color: var(--color-dark-2);
}
.band__media {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
}
.band__overlay {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.05) 100%);
}
.band__content {
  position: absolute;
  left: var(--gutter-horizontal);
  right: var(--gutter-horizontal);
  bottom: 9%;
  z-index: 2;
}
.band__line {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 84px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-accent-primary);
}
@media screen and (max-width: 767px) {
  .band {
    height: 52vh;
    min-height: 340px;
  }
}

/* CTA band over the palms */
.cta {
  position: relative;
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  background-image: url("../assets/img/bg/dunes.svg");
  background-size: cover;
  background-position: center bottom;
}
.cta__overlay {
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.35) 100%);
}
.cta .section-content__inner {
  position: relative;
  z-index: 2;
}

/*!==========================================================================
 * Inner pages: page heads, light work grid, services lists
 * ==========================================================================*/
/* Light-context versions of theme pieces used on inner pages */
.section_light .small-caps {
  color: var(--color-ink-3);
}
.section_light .button_solid.button_gold {
  border-color: var(--color-ink);
  background-color: var(--color-ink);
  color: var(--color-accent-primary);
}
.section_light .button_solid.button_gold:hover {
  border-color: var(--color-ink-2);
  background-color: var(--color-ink-2);
  color: #fff;
}
.section_light .button_bordered.button_white {
  border-color: var(--color-ink);
  color: var(--color-ink);
}
.section_light .button_bordered.button_white:hover {
  border-color: var(--color-ink-3);
  color: var(--color-ink-3);
}
.section_light .section-link {
  color: var(--color-ink);
  border-bottom-color: rgba(18, 17, 9, 0.3);
}
.section_light .section-link:hover {
  color: var(--color-ink-3);
  border-bottom-color: var(--color-ink-3);
}

/* Work cards on cream paper */
.section_light .work-card__media {
  background-color: #fff;
  border-color: rgba(18, 17, 9, 0.15);
}
.section_light .work-card__title {
  color: var(--color-ink);
}
.section_light .work-card:hover .work-card__title {
  color: var(--color-ink-3);
}
.section_light .work-card__summary {
  color: var(--color-ink-2);
}
.section_light .work-card__type {
  color: var(--color-ink-3);
}

/* Works page filter on cream */
.section_light .filter__item {
  color: var(--color-ink-3);
}
.section_light .filter__item_active,
.section_light .filter__item:hover {
  color: var(--color-ink);
}
.section_light .filter__underline {
  background-color: var(--color-ink);
}
.works-toolbar {
  padding-bottom: 2.5rem;
}
.works-grid .section-grid__item {
  margin-bottom: 0;
}
.works-grid .js-grid__item {
  padding-bottom: 3rem;
}

/* Services: six-item list with full descriptions */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  margin-top: 3rem;
}
.svc {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid rgba(18, 17, 9, 0.16);
}
[data-arts-theme-text=light] .svc {
  border-top-color: var(--color-dark-3);
}
.svc__title {
  margin: 0 0 0.5em;
  color: var(--color-ink);
}
[data-arts-theme-text=light] .svc__title {
  color: #fff;
}
.svc__text {
  margin: 0;
  font-size: 16px;
  color: var(--color-ink-2);
}
[data-arts-theme-text=light] .svc__text {
  color: var(--color-gray-2);
}
@media screen and (max-width: 767px) {
  .svc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 2rem;
  }
}

/* Works filter stays on one row on phones instead of stacking */
@media screen and (max-width: 991px) {
  .works-toolbar .filter .row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .works-toolbar .filter .row {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }
  .works-toolbar .filter__item {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin-right: 1.6rem;
    padding: 0.6em 0;
    text-align: left;
  }
  .works-toolbar .filter__item:last-child {
    margin-right: 0;
  }
  .works-toolbar {
    padding-bottom: 1.5rem;
  }
}

/*!==========================================================================
 * Buttons, matched to desertpalm.marketing (.btn-primary / .btn-outline):
 * square, 12px Poppins uppercase tracked 0.15em, 16px 36px padding. The
 * solid button fills khaki from the left on hover and carries an arrow.
 * ==========================================================================*/
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 16px 36px;
  border-width: 1px;
  border-radius: 0;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
@media screen and (min-width: 320px) {
  .button {
    font-size: 12px;
  }
}
/* retire the theme's slide-up label swap; keep the label put */
.button[data-hover]:before {
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(-101%);
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease;
  background-color: transparent;
}
.button[data-hover]:hover .button__label-hover {
  transform: none;
  opacity: 1;
  visibility: visible;
}
.button[data-hover]:hover:before {
  transform: translateX(0);
}
.button__label-hover {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Primary: cream, black label, khaki sweep on hover, arrow */
.button_solid.button_gold {
  border-color: var(--color-accent-primary);
  background-color: var(--color-accent-primary);
  color: var(--color-dark-1);
}
.button_solid.button_gold:hover {
  border-color: var(--color-accent-dark);
  background-color: var(--color-accent-primary);
  color: var(--color-dark-1);
}
.button_solid.button_gold[data-hover]:before {
  background-color: var(--color-accent-dark);
}
.button_solid .button__label-hover:after {
  content: "\2192";
  font-weight: 600;
}

/* Outline: hairline at 30% white, plain weight, cream on hover */
.button_bordered.button_white {
  border-color: rgba(239, 239, 239, 0.3);
  color: #efefef;
  font-weight: 400;
}
.button_bordered.button_white:hover {
  border-color: var(--color-accent-primary);
  color: var(--color-accent-primary);
}
.button_bordered[data-hover]:before {
  display: none;
}

/* On cream and khaki paper */
.section_light .button_solid.button_gold {
  border-color: var(--color-ink);
  background-color: var(--color-ink);
  color: var(--color-accent-primary);
}
.section_light .button_solid.button_gold:hover {
  border-color: var(--color-ink);
  background-color: var(--color-ink);
  color: var(--color-accent-primary);
}
.section_light .button_solid.button_gold[data-hover]:before {
  background-color: var(--color-ink-2);
}
.section_light .button_bordered.button_white {
  border-color: rgba(18, 17, 9, 0.35);
  color: var(--color-ink);
}
.section_light .button_bordered.button_white:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

/*!==========================================================================
 * Texture: visible grain on every plain background, a soft khaki vignette on
 * the paper sections, a warm glow plus fine dot grid on the dark ones.
 * ==========================================================================*/
.section.bg-dark-1,
.section.bg-dark-2,
div.container-fluid.bg-dark-2,
.footer {
  background-image:
    radial-gradient(70% 55% at 10% 0%, rgba(254, 242, 194, 0.045) 0%, rgba(254, 242, 194, 0) 100%),
    radial-gradient(rgba(254, 242, 194, 0.05) 1px, transparent 1.2px),
    url("../assets/img/bg/grain-dark.svg");
  background-repeat: no-repeat, repeat, repeat;
  background-size: auto, 26px 26px, 240px 240px;
  background-position: 0 0, 12px 12px, 0 0;
}
.section_light,
.container-fluid.bg-light-1 {
  background-image:
    radial-gradient(120% 90% at 50% 40%, rgba(179, 170, 136, 0) 45%, rgba(179, 170, 136, 0.28) 100%),
    radial-gradient(rgba(18, 17, 9, 0.11) 1px, transparent 1.2px),
    url("../assets/img/bg/grain-light.svg");
  background-repeat: no-repeat, repeat, repeat;
  background-size: auto, 26px 26px, 240px 240px;
  background-position: 0 0, 12px 12px, 0 0;
}
/* the hero and the photo bands paint their own backgrounds */
.section.hero,
.section.cta,
.section.band {
  background-image: none;
}

/* Sticky nav: solid black, no texture */
.header.header_sticky,
.header.bg-dark-1,
.header.bg-dark-2 {
  background-image: none;
  background-color: var(--color-dark-1) !important;
}

/*!==========================================================================
 * Line icons (assets/img/icons.svg sprite): cream on dark, ink on paper
 * ==========================================================================*/
.icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--color-accent-primary);
  vertical-align: middle;
}
.section_light .icon {
  color: var(--color-ink);
}
.pillar__icon {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
}
.included__list li,
.svc__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.included__list .icon {
  width: 20px;
  height: 20px;
}
.svc__title .icon {
  width: 24px;
  height: 24px;
}
.section_light .included__list .icon,
.section_light .svc__title .icon {
  color: var(--color-ink-3);
}

/*!==========================================================================
 * Case studies: properties row and device mocks (phone + laptop)
 * ==========================================================================*/
.case-props .figure-info__option {
  font-size: 11px;
}
.case-props .figure-info__value {
  font-size: 16px;
  line-height: 1.5;
  color: #efefef;
}
[data-arts-theme-text=light] .case-props .figure-info__value a {
  color: var(--color-accent-primary);
  border-bottom: 1px solid rgba(254, 242, 194, 0.35);
}
[data-arts-theme-text=light] .case-props .figure-info__value a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Shared: both devices are sized from one height so they line up */
.case-gallery {
  /* one row at every width: the height is whatever lets phone + laptop
     (about 2.1 heights wide together) fit the container side by side */
  --device-gap: 3.5rem;
  /* Bootstrap container content widths: 1110 / 930 / 690 */
  --device-h: calc((1110px - var(--device-gap)) / 2.15);
}
.case-gallery .case-gallery__row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: var(--device-gap);
}
.case-gallery__item {
  flex: 0 0 auto;
  text-align: center;
}
.device {
  position: relative;
  display: block;
  color: inherit;
}
.device__screen {
  position: relative;
  overflow: hidden;
  background-color: #000;
}
.device__screen img {
  display: block;
  width: 100%;
  height: auto;
}
.device__caption {
  margin: 1rem 0 0;
  font-size: 13px;
  color: var(--color-ink-3);
}

/* Phone: the screen sits below a bezel that holds the notch, so nothing
   covers the site's own top bar. Width follows from the shared height. */
.device_phone {
  height: var(--device-h);
  width: calc((var(--device-h) - 54px) * 0.4614 + 22px);
  margin: 0 auto;
  padding: 30px 11px 24px;
  border-radius: 40px;
  background-color: #141414;
  box-shadow:
    inset 0 0 0 1.5px #3a3a3a,
    0 24px 50px -18px rgba(0, 0, 0, 0.45);
}
.device_phone .device__screen {
  width: 100%;
  height: 100%;
  border-radius: 14px;
}
.device_phone .device__screen img {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device_phone::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 36%;
  height: 8px;
  transform: translateX(-50%);
  background-color: #000;
  border-radius: 4px;
}
.device_phone::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 34%;
  height: 4px;
  transform: translateX(-50%);
  background-color: #3a3a3a;
  border-radius: 2px;
}

/* Laptop: bezelled 16:10 screen on a base; the page scrolls on hover.
   Screen height = shared height minus the base. */
.device_laptop {
  height: var(--device-h);
  width: calc((var(--device-h) - 15px) * 1.6);
  max-width: 100%;
  margin: 0 auto;
}
.device_laptop .device__screen {
  height: calc(var(--device-h) - 15px);
  border: 11px solid #141414;
  border-bottom-width: 16px;
  border-radius: 14px 14px 2px 2px;
  box-shadow:
    inset 0 0 0 1px #3a3a3a,
    0 24px 50px -18px rgba(0, 0, 0, 0.45);
}
.device_laptop .device__page {
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.device_laptop:hover .device__page,
.device_laptop:focus-visible .device__page {
  /* image is 3:4 inside a 16:10 screen: 1.333W tall vs 0.625W visible */
  transform: translateY(-53%);
  transition: transform 7s linear;
}
.device__base {
  position: relative;
  height: 15px;
  margin: 0 -4%;
  background: linear-gradient(#303030, #161616);
  border-radius: 0 0 14px 14px;
}
.device__base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 4px;
  transform: translateX(-50%);
  background-color: #0b0b0b;
  border-radius: 0 0 4px 4px;
}
@media screen and (max-width: 1199px) {
  .case-gallery {
    --device-h: calc((930px - var(--device-gap)) / 2.15);
  }
}
@media screen and (max-width: 991px) {
  .case-gallery {
    --device-gap: 2rem;
    --device-h: calc((690px - var(--device-gap)) / 2.15);
  }
}
/* Phones: stack them */
@media screen and (max-width: 767px) {
  .case-gallery {
    --device-h: 440px;
  }
  .case-gallery .case-gallery__row {
    flex-wrap: wrap;
    gap: 2.5rem 0;
  }
  .case-gallery__item {
    width: 100%;
  }
  .device_laptop {
    height: auto;
    width: 100%;
  }
  .device_laptop .device__screen {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}
@media (prefers-reduced-motion: reduce) {
  .device_laptop:hover .device__page {
    transform: none;
  }
}

/* Preloader: wordmark instead of the text title */
.preloader__logo {
  display: block;
  width: 240px;
  height: auto;
  margin: 0 auto;
}
.preloader__subline {
  color: var(--color-gray-1);
}
@media screen and (max-width: 767px) {
  .preloader__logo {
    width: 180px;
  }
}

/*!==========================================================================
 * Contact page: inline form on cream
 * ==========================================================================*/
.contact-page__props {
  margin-top: 1rem;
}
.contact-page__props .figure-info__value {
  color: var(--color-ink);
  overflow-wrap: anywhere;
}
.contact-page__props .figure-info__value a {
  color: var(--color-ink);
  border-bottom: 1px solid rgba(18, 17, 9, 0.3);
}
.contact-page__props .figure-info__value a:hover {
  color: var(--color-ink-3);
  border-bottom-color: var(--color-ink-3);
}
.contact-form__field {
  margin-bottom: 1.5em;
}
.contact-form .input-float__input {
  color: var(--color-ink);
  border-bottom-color: rgba(18, 17, 9, 0.3);
}
.contact-form .input-float__label {
  color: var(--color-ink-3);
}
.contact-form .input-float__input_focused {
  border-bottom-color: var(--color-ink);
}
.contact-form .input-float__input_focused + .input-float__label {
  color: var(--color-ink);
}
.contact-form select.input-float__input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a7158' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.contact-form .contact-modal__input_error {
  border-bottom-color: #b3473d !important;
}
.contact-form .form__error {
  display: block;
  margin-top: 0.4em;
  font-size: 12px;
  color: #b3473d;
}
.contact-form__result {
  margin-top: 1.5em;
  color: var(--color-ink);
}
.contact-form__result.contact-modal__result_error {
  color: #b3473d;
}
