/* ==========================================================================
   Zamzam Decor — custom styles layered on top of Tailwind CSS
   Tailwind handles layout/spacing/colour utilities; this file holds the
   brand typography, motion and the components Tailwind alone can't express.
   ========================================================================== */

/* Brand palette sampled from ZM-Logo.png: purple #6C0060, navy #000C6C. */
:root {
  --zd-navy: #000c6c;
  --zd-navy-deep: #000428;
  --zd-purple: #6c0060;
  --zd-purple-deep: #4a0042;
  --zd-purple-soft: #b565ab;
  --zd-mist: #f4f2f8;
  --zd-mist-deep: #e4e0f0;
  --zd-ink: #000c6c;
  --zd-muted: #3d3d72;
  --zd-header-h: 88px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--zd-header-h) + 16px);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--zd-ink);
  background-color: var(--zd-mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .font-display {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--zd-purple);
  color: #fff;
}

/* -------------------------------------------------------------------------
   Typographic accents
   ------------------------------------------------------------------------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--zd-purple);
}

.rule-accent {
  display: block;
  width: 62px;
  height: 2px;
  background: linear-gradient(90deg, var(--zd-purple), rgba(108, 0, 96, 0));
}

.rule-accent-center {
  margin-inline: auto;
  background: linear-gradient(90deg, rgba(108, 0, 96, 0), var(--zd-purple), rgba(108, 0, 96, 0));
}

.text-balance {
  text-wrap: balance;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.9rem;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.28s ease, color 0.28s ease, border-color 0.28s ease,
    transform 0.28s ease, box-shadow 0.28s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--zd-purple);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--zd-purple);
  color: #fff;
  box-shadow: 0 12px 30px -14px rgba(0, 12, 108, 0.65);
}

.btn-primary:hover {
  background: var(--zd-purple-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(0, 12, 108, 0.75);
}

.btn-dark {
  background: var(--zd-navy);
  color: var(--zd-mist);
}

.btn-dark:hover {
  background: var(--zd-navy-deep);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: rgba(0, 12, 108, 0.28);
  color: var(--zd-navy);
}

.btn-outline:hover {
  border-color: var(--zd-purple);
  background: var(--zd-purple);
  color: #fff;
}

.btn-ghost-light {
  border-color: rgba(247, 245, 250, 0.45);
  color: var(--zd-mist);
}

.btn-ghost-light:hover {
  background: var(--zd-mist);
  color: var(--zd-navy);
}

/* -------------------------------------------------------------------------
   Header & navigation
   ------------------------------------------------------------------------- */

.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-stuck {
  background: rgba(247, 245, 250, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -22px rgba(0, 12, 108, 0.8);
  border-bottom-color: rgba(0, 12, 108, 0.08);
}

.nav-link {
  position: relative;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zd-navy);
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}

@media (min-width: 1280px) {
  .nav-link { font-size: 0.79rem; }
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.5px;
  width: 0;
  background: var(--zd-purple);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--zd-purple);
}

.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  width: 100%;
}

.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 0.62rem 1.1rem;
  font-size: 0.85rem;
  color: var(--zd-ink);
  border-left: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link[aria-current='page'] {
  background: var(--zd-mist);
  color: var(--zd-navy);
  border-left-color: var(--zd-purple);
}

/* Mobile drawer */
.mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}

.mobile-sub > div {
  overflow: hidden;
}

.mobile-group.is-open .mobile-sub {
  grid-template-rows: 1fr;
}

.mobile-group.is-open .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-chevron {
  transition: transform 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-reveal='left'] { transform: translateX(-30px); }
[data-reveal='right'] { transform: translateX(30px); }
[data-reveal='zoom'] { transform: scale(0.95); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------------
   Cards & media
   ------------------------------------------------------------------------- */

.card {
  background: #fff;
  border: 1px solid rgba(0, 12, 108, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 0, 96, 0.5);
  box-shadow: 0 26px 50px -30px rgba(0, 12, 108, 0.55);
}

.media-zoom img {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-zoom:hover img {
  transform: scale(1.07);
}

.accent-frame {
  position: relative;
}

.accent-frame::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(181, 101, 171, 0.5);
  pointer-events: none;
}

.pattern-band {
  background-image: url('../images/pattern-arabesque.svg');
  background-size: 190px;
  background-repeat: repeat;
}

/* -------------------------------------------------------------------------
   Portfolio filtering
   ------------------------------------------------------------------------- */

.filter-btn {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.62rem 1.25rem;
  border: 1px solid rgba(0, 12, 108, 0.16);
  color: var(--zd-muted);
  background: transparent;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  color: var(--zd-navy);
  border-color: var(--zd-purple);
}

.filter-btn.is-active {
  background: var(--zd-navy);
  border-color: var(--zd-navy);
  color: var(--zd-mist);
}

.portfolio-item {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-item.is-hidden {
  display: none;
}

.portfolio-item.is-fading {
  opacity: 0;
  transform: scale(0.97);
}

/* -------------------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 46, 0.975);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 76vh;
  object-fit: contain;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  transform: scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 245, 250, 0.3);
  color: var(--zd-mist);
  background: rgba(247, 245, 250, 0.06);
  border-radius: 999px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.lightbox-btn:hover {
  background: var(--zd-purple);
  border-color: var(--zd-purple);
  color: #fff;
}

/* -------------------------------------------------------------------------
   FAQ accordion
   ------------------------------------------------------------------------- */

.faq-item + .faq-item {
  border-top: 1px solid rgba(0, 12, 108, 0.1);
}

.faq-trigger {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  text-align: left;
  transition: color 0.25s ease;
}

.faq-trigger:hover {
  color: var(--zd-purple);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s ease;
}

.faq-panel > div {
  overflow: hidden;
}

.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--zd-purple);
  color: #fff;
  border-color: var(--zd-purple);
}

.faq-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 12, 108, 0.2);
  border-radius: 999px;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */

.field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zd-muted);
  margin-bottom: 0.5rem;
}

.field {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(0, 12, 108, 0.16);
  border-radius: 2px;
  font-size: 0.95rem;
  color: var(--zd-ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field::placeholder {
  color: #9e9ab0;
}

.field:focus {
  outline: none;
  border-color: var(--zd-purple);
  box-shadow: 0 0 0 3px rgba(108, 0, 96, 0.16);
}

.field[aria-invalid='true'] {
  border-color: #c0432f;
  box-shadow: 0 0 0 3px rgba(192, 67, 47, 0.12);
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6880' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}

.field-error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: #c0432f;
}

.field-error.is-shown {
  display: block;
}

/* -------------------------------------------------------------------------
   Misc
   ------------------------------------------------------------------------- */

.stat-value {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.05;
  color: var(--zd-purple);
}

.link-underline {
  background-image: linear-gradient(var(--zd-purple), var(--zd-purple));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease;
}

.link-underline:hover {
  background-size: 100% 1px;
}

.to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s,
    background-color 0.3s ease;
}

.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Logo fallback: JS swaps in the placeholder mark if logo.png is missing. */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

@media (min-width: 1024px) {
  .logo-img { height: 62px; }
}

/* The brand logo is a transparent PNG containing navy artwork, so on dark
   surfaces it sits on a light plate to stay legible. */
.logo-plate {
  display: inline-block;
  padding: 0.7rem 1rem;
  background: var(--zd-mist);
  border-radius: 3px;
}

.site-footer {
  background-color: var(--zd-navy-deep);
}

/* -------------------------------------------------------------------------
   Homepage hero slider
   ------------------------------------------------------------------------- */

.hero-slider {
  position: relative;
}

.hero-slider-viewport {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.05s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-slide.is-active .hero-slide-img {
  animation: heroKenBurns 18s ease-out forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1.06); }
  to { transform: scale(1.16); }
}

.hero-slider-controls {
  position: absolute;
  right: 1.15rem;
  bottom: 5.25rem;
  z-index: 3;
  display: flex;
  gap: 0.55rem;
}

.hero-slider-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(244, 242, 248, 0.35);
  color: var(--zd-mist);
  background: rgba(0, 4, 40, 0.45);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-slider-btn:hover,
.hero-slider-btn:focus-visible {
  background: var(--zd-purple);
  border-color: var(--zd-purple);
  outline: none;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.hero-slider-dot {
  width: 2.1rem;
  height: 3px;
  background: rgba(244, 242, 248, 0.35);
  transition: background-color 0.2s ease, width 0.2s ease;
}

.hero-slider-dot.is-active {
  width: 2.7rem;
  background: var(--zd-purple);
}

/* -------------------------------------------------------------------------
   Parallax
   ------------------------------------------------------------------------- */

.parallax-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.parallax-media {
  position: absolute;
  left: 0;
  right: 0;
  top: -22%;
  width: 100%;
  height: 144%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.12);
  pointer-events: none;
}

.parallax-media.is-static {
  top: 0;
  height: 100%;
  transform: none;
  will-change: auto;
}

/* -------------------------------------------------------------------------
   Our Projects — cinematic hero and editorial index
   ------------------------------------------------------------------------- */

.projects-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  background: var(--zd-navy-deep);
  color: var(--zd-mist);
}

@media (min-width: 1024px) {
  .projects-hero { min-height: calc(100svh - 128px); }
}

.projects-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: projects-drift 32s ease-in-out infinite alternate;
}

@keyframes projects-drift {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-2%, -1.2%, 0); }
}

.projects-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(0, 4, 40, 0.92) 0%, rgba(0, 4, 40, 0.62) 38%, rgba(0, 4, 40, 0.12) 68%),
    linear-gradient(to top, rgba(0, 4, 40, 0.55), transparent 36%);
}

.projects-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 4.5rem 0 6.2rem;
}

.projects-hero .eyebrow { color: #f0d4ea; }

.projects-hero-index {
  margin-bottom: 0.8rem;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(181, 101, 171, 0.85);
}

.projects-hero-title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6.2vw, 5.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--zd-mist);
}

.projects-hero-title span {
  display: block;
  max-width: 18ch;
  margin-top: 0.35rem;
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(244, 242, 248, 0.82);
}

.projects-hero-lead {
  max-width: 38rem;
  margin-top: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(244, 242, 248, 0.78);
}

.projects-hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.15rem;
  display: flex;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(244, 242, 248, 0.82);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.projects-hero-scroll:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.projects-hero-scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(240, 212, 234, 0.1), #f0d4ea);
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(0.65); transform-origin: top; opacity: 0.45; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

.stage { margin-bottom: clamp(4.5rem, 9vw, 8.5rem); }
.stage:last-child { margin-bottom: 0; }

.stage-link {
  display: grid;
  gap: 1.15rem;
  color: inherit;
  text-decoration: none;
}

.stage-link:focus-visible {
  outline: 2px solid var(--zd-purple);
  outline-offset: 6px;
}

.stage-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--zd-navy-deep);
}

.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-index {
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(108, 0, 96, 0.22);
}

.stage-kicker {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--zd-purple);
}

.stage-title {
  margin-top: 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--zd-navy);
}

.stage-summary {
  max-width: 38rem;
  margin-top: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--zd-muted);
}

.stage-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-purple);
}

.stage-link:hover .stage-cta { gap: 0.75rem; }
.stage-cta { transition: gap 0.3s ease; }

.stage--wide .stage-copy { max-width: 44rem; }

@media (min-width: 960px) {
  .stage--wide .stage-media { aspect-ratio: 16 / 8.2; }

  .stage--offset-right .stage-link { grid-template-columns: 0.38fr minmax(0, 1fr); }
  .stage--offset-right .stage-media,
  .stage--offset-right .stage-copy { grid-column: 2; }
  .stage--offset-right .stage-media { aspect-ratio: 4 / 3; }
  .stage--offset-right .stage-copy { justify-self: end; text-align: right; }
  .stage--offset-right .stage-summary { margin-left: auto; }

  .stage--split .stage-link {
    grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 2rem 4.5rem;
  }
  .stage--split .stage-media { order: 2; aspect-ratio: 5 / 4; }
  .stage--split .stage-copy { order: 1; }

  .stage--portrait .stage-link {
    grid-template-columns: minmax(0, 0.82fr) minmax(15rem, 0.5fr);
    align-items: end;
    gap: 2rem 3.5rem;
  }
  .stage--portrait .stage-media { aspect-ratio: 4 / 5; }

  .stage--offset-left .stage-link {
    grid-template-columns: minmax(0, 0.9fr) minmax(14rem, 0.42fr);
    align-items: end;
    gap: 2rem 3rem;
  }
  .stage--offset-left .stage-media { aspect-ratio: 5 / 4; }

  .stage--inset .stage-media {
    width: min(100%, 88%);
    margin-left: auto;
    aspect-ratio: 16 / 7.4;
  }
}

.project-mosaic {
  display: grid;
  align-items: start;
  gap: 0.85rem;
}

@media (min-width: 700px) {
  .project-mosaic { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .project-mosaic { grid-template-columns: 1.25fr 1fr 1fr; }
  .project-mosaic > :first-child { grid-column: 1 / -1; }
}

.project-mosaic-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--zd-navy-deep);
  color: var(--zd-mist);
}

.project-mosaic-item img,
.project-mosaic-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-mosaic > :first-child img { aspect-ratio: 16 / 8; }
.project-mosaic > :nth-child(4n + 2) img { aspect-ratio: 3 / 4; }
.project-mosaic > :nth-child(4n + 4) img { aspect-ratio: 16 / 10; }

.project-mosaic-open {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.7rem;
  background: rgba(0, 4, 40, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-mosaic-item:hover .project-mosaic-open,
.project-mosaic-item:focus-visible .project-mosaic-open { opacity: 1; }

.project-mosaic-video figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.95rem;
  color: var(--zd-mist);
}

.project-pager {
  display: grid;
  gap: 0;
  border-block: 1px solid rgba(0, 12, 108, 0.12);
  background: #fff;
}

@media (min-width: 800px) {
  .project-pager { grid-template-columns: 1fr auto 1fr; }
}

.project-pager-link,
.project-pager-all {
  display: flex;
  min-height: 7.5rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.4rem 1.5rem;
  color: var(--zd-navy);
  text-decoration: none;
}

.project-pager-link span,
.project-pager-all {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-purple);
}

.project-pager-link strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-pager-link--next { text-align: right; align-items: flex-end; }
.project-pager-all {
  align-items: center;
  border-block: 1px solid rgba(0, 12, 108, 0.12);
  text-align: center;
}

@media (min-width: 800px) {
  .project-pager-all { border-block: 0; border-inline: 1px solid rgba(0, 12, 108, 0.12); }
}

.project-pager-link:hover strong,
.project-pager-all:hover { color: var(--zd-purple); }

.project-pager-link:focus-visible,
.project-pager-all:focus-visible {
  outline: 2px solid var(--zd-purple);
  outline-offset: -2px;
}

.project-pager-link.is-empty { pointer-events: none; }

/* -------------------------------------------------------------------------
   Portfolio collection and project case studies
   ------------------------------------------------------------------------- */

@view-transition {
  navigation: auto;
}

.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  scrollbar-color: rgba(108, 0, 96, 0.45) transparent;
}

@media (min-width: 800px) {
  .work-rail { grid-auto-columns: minmax(280px, 22vw); padding-inline: max(1.25rem, calc((100% - 1440px) / 2 + 2rem)); }
}

.rail-card { scroll-snap-align: start; }
.rail-card a { display: block; color: inherit; text-decoration: none; }
.rail-card figure { overflow: hidden; background: var(--zd-navy-deep); }
.rail-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.rail-card-copy { padding: 0.85rem 0.1rem 0.2rem; }
.rail-card-copy span,
.rail-card-copy small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-purple);
}
.rail-card-copy p {
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--zd-navy);
}
.rail-card a:focus-visible { outline: 2px solid var(--zd-purple); outline-offset: 4px; }

.work { border-top: 1px solid rgba(0, 12, 108, 0.1); }
.work-link {
  display: grid;
  gap: 1.25rem;
  padding: 2.5rem 0;
  color: inherit;
  text-decoration: none;
}
.work-link:focus-visible { outline: 2px solid var(--zd-purple); outline-offset: 6px; }
.work-cover { overflow: hidden; background: var(--zd-navy-deep); }
.work-cover img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; margin-top: 0.55rem; }
.work-strip figure { overflow: hidden; background: var(--zd-navy-deep); }
.work-strip img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.work-num {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(108, 0, 96, 0.22);
}
.work-tag {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-purple);
}
.work-copy h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--zd-navy);
}
.work-summary { max-width: 36rem; margin-top: 0.85rem; line-height: 1.65; color: var(--zd-muted); }
.work-points { display: grid; gap: 0.4rem; margin-top: 1.1rem; }
.work-points li { position: relative; padding-left: 0.9rem; font-size: 0.92rem; color: var(--zd-ink); }
.work-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 1px;
  background: var(--zd-purple);
}
.work-go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-purple);
  transition: gap 0.3s ease;
}
.work-link:hover .work-go { gap: 0.8rem; }

@media (min-width: 1000px) {
  .work-link { grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.7fr); align-items: end; gap: 3rem; padding: 4.5rem 0; }
  .work:nth-child(even) .work-copy { order: -1; }
}

.study-nav-bar {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: rgba(244, 242, 248, 0.92);
  border-bottom: 1px solid rgba(0, 12, 108, 0.08);
  backdrop-filter: blur(14px);
}
@media (min-width: 1024px) { .study-nav-bar { top: 88px; } }
.study-nav {
  display: flex;
  gap: 0.4rem;
  max-width: 1440px;
  margin-inline: auto;
  padding: 0.7rem 1.25rem;
  overflow-x: auto;
}
.study-nav a {
  flex: none;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zd-muted);
  text-decoration: none;
}
.study-nav a.is-active { color: #fff; background: var(--zd-navy); }
.study-nav a:focus-visible { outline: 2px solid var(--zd-purple); outline-offset: 2px; }

.study-intro { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .study-intro { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: start; } }
.study-facts { border: 1px solid rgba(0, 12, 108, 0.1); background: #fff; padding: 1.6rem; }
.study-facts dl { display: grid; gap: 0.9rem; }
.study-facts dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--zd-purple); }
.study-facts dd { margin-top: 0.15rem; font-size: 1.35rem; font-weight: 700; color: var(--zd-navy); }
.study-facts h3 { margin-top: 1.5rem; font-size: 1.35rem; color: var(--zd-navy); }
.study-facts li {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(0, 12, 108, 0.08);
  color: var(--zd-ink);
}

.study-gallery-wrap { padding-bottom: 2rem; }
.study-gallery {
  display: grid;
  align-items: start;
  gap: 0.7rem;
  width: min(1440px, calc(100% - 2.5rem));
  margin-inline: auto;
}
.study-shot { position: relative; display: block; overflow: hidden; background: var(--zd-navy-deep); }
.study-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.study-shot--feature img { aspect-ratio: 16 / 9; }
.study-shot-index {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.3rem 0.45rem;
  background: rgba(0, 4, 40, 0.72);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.study-shot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (min-width: 900px) {
  .study-gallery { grid-template-columns: repeat(12, 1fr); }
  .study-shot--feature { grid-column: span 12; }
  .study-shot--feature img { aspect-ratio: 16 / 7.4; }
  .study-shot--lead { grid-column: span 7; }
  .study-shot--lead img { aspect-ratio: 4 / 3; }
  .study-shot--side { grid-column: span 5; }
  .study-shot--side img { aspect-ratio: 4 / 5; }
  .study-shot--third { grid-column: span 4; }
  .study-shot--band { grid-column: span 12; }
  .study-shot--band img { aspect-ratio: 21 / 8; }
}

.study-videos { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 800px) { .study-videos { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.study-video { background: var(--zd-navy-deep); }
.study-video video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.study-video figcaption { padding: 0.8rem 1rem 1rem; color: var(--zd-mist); }

.study-next {
  position: relative;
  display: grid;
  min-height: 24rem;
  place-items: end start;
  overflow: hidden;
  color: var(--zd-mist);
  text-decoration: none;
  background: var(--zd-navy-deep);
}
.study-next-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.study-next-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,4,40,0.82), rgba(0,4,40,0.2)); }
.study-next-copy { position: relative; padding: 3rem 1.5rem; }
.study-next small, .study-next em {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0d4ea;
}
.study-next strong {
  display: block;
  margin: 0.4rem 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.study-next:focus-visible { outline: 3px solid var(--zd-purple); outline-offset: -6px; }
.study-next--plain { min-height: 16rem; align-items: center; }

.study-related {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
@media (min-width: 900px) { .study-related { grid-auto-columns: calc((100% - 1.7rem) / 3); } }
.study-related-card { scroll-snap-align: start; color: inherit; text-decoration: none; }
.study-related-card figure { overflow: hidden; background: var(--zd-navy-deep); }
.study-related-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.study-related-card span {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-purple);
}
.study-related-card strong { display: block; margin-top: 0.2rem; font-size: 1.25rem; color: var(--zd-navy); }
.study-related-card:focus-visible { outline: 2px solid var(--zd-purple); outline-offset: 4px; }

/* -------------------------------------------------------------------------
   Homepage — Fozam-style composition, Zamzam palette
   ------------------------------------------------------------------------- */

.home-top {
  display: none;
  background: #fff;
  color: var(--zd-navy);
  border-bottom: 1px solid rgba(0, 12, 108, 0.08);
}

.home-top-link {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zd-navy);
}

.home-top .flex .home-top-link { white-space: nowrap; }

.home-top-link:hover { color: var(--zd-purple); }

.home-bar { border-bottom: 1px solid rgba(0, 12, 108, 0.08); }

.home-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.home-logo {
  display: flex;
  align-items: center;
}

@media (min-width: 1024px) {
  .home-top { display: block; }

  .home-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 96px;
  }

  .home-logo {
    padding: 0 1.4rem;
    border-left: 1px solid rgba(0, 12, 108, 0.1);
    border-right: 1px solid rgba(0, 12, 108, 0.1);
  }
}

.hero-home {
  position: relative;
  min-height: calc(100svh - 76px);
  background: var(--zd-navy-deep);
  color: var(--zd-mist);
}

@media (min-width: 1024px) {
  .hero-home { min-height: calc(100svh - 148px); }
}

.hero-home-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 4, 40, 0.18) 0%, rgba(0, 4, 40, 0.05) 38%, rgba(0, 4, 40, 0.72) 100%);
}

.hero-home-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  max-width: 52rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6.5rem 1.25rem 8.5rem;
}

@media (min-width: 640px) {
  .hero-home-copy { padding: 7rem 2rem 6rem; }
}

@media (min-width: 1024px) {
  .hero-home-copy { padding: 8rem 3rem 6.5rem; }
}

.hero-home-pill,
.home-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(244, 242, 248, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-mist);
}

.hero-home-pill::before,
.home-pill::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--zd-purple-soft);
}

.hero-home-title {
  margin-top: 1.1rem;
  max-width: 16ch;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.96;
  color: #fff;
}

.hero-home-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(244, 242, 248, 0.82);
}

.hero-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  font-size: 0.95rem;
}

.hero-home-cta span {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 999px;
  background: var(--zd-purple);
}

.hero-home-link {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 0.15rem;
}

.hero-home-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 3;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #fff;
  color: var(--zd-navy);
}

.hero-home-scroll svg { width: 1.1rem; height: 1.1rem; }

.page-home .hero-slider-dots {
  left: auto;
  right: 1.5rem;
  bottom: 1.7rem;
  transform: none;
}

.home-display {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: var(--zd-navy);
}

.home-display em {
  font-style: normal;
  color: var(--zd-purple);
}

.home-intro-head {
  display: grid;
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
}

@media (min-width: 900px) {
  .home-intro-head {
    grid-template-columns: 0.7fr 1.3fr;
    align-items: start;
    padding: 6.5rem 3rem 5rem;
  }
}

.home-pill {
  border-color: rgba(0, 12, 108, 0.16);
  color: var(--zd-navy);
  background: #fff;
}

.home-intro-head p:last-child {
  margin-top: 1.1rem;
  max-width: 38rem;
  color: var(--zd-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-intro-band {
  display: grid;
  background: var(--zd-navy-deep);
  color: var(--zd-mist);
}

@media (min-width: 900px) {
  .home-intro-band { grid-template-columns: 1.05fr 0.95fr; }
}

.home-intro-copy { padding: 3.5rem 1.25rem; }

@media (min-width: 900px) {
  .home-intro-copy { padding: 4.5rem 3rem; }
}

.home-pill-light {
  border-color: rgba(244, 242, 248, 0.28);
  background: transparent;
  color: var(--zd-mist);
}

.home-intro-text {
  margin-top: 1.4rem;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(244, 242, 248, 0.78);
}

.home-intro-copy ul {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

@media (min-width: 640px) {
  .home-intro-copy ul { grid-template-columns: 1fr 1fr; }
}

.home-intro-copy li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: rgba(244, 242, 248, 0.9);
  font-size: 0.95rem;
}

.home-intro-copy li svg { flex: none; margin-top: 0.15rem; color: var(--zd-purple-soft); }

.home-intro-photo { min-height: 22rem; overflow: hidden; background: var(--zd-navy); }

.home-intro-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

@media (min-width: 900px) {
  .home-intro-photo img { min-height: 100%; }
}

.home-services {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .home-services { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}

.home-service-row { border-bottom: 1px solid rgba(0, 12, 108, 0.12); }

.home-service-row button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  text-align: left;
  color: var(--zd-navy);
}

.home-service-row button span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--zd-purple);
}

.home-service-row button strong { font-size: 1.15rem; font-weight: 500; }

.home-service-panel {
  display: none;
  padding: 0 0 1.1rem 2.4rem;
}

.home-service-row.is-open .home-service-panel { display: block; }

.home-service-panel p { color: var(--zd-muted); line-height: 1.65; }

.home-service-panel a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zd-purple);
}

.home-service-photo {
  overflow: hidden;
  border-radius: 1.4rem 1.4rem 0 1.4rem;
  background: var(--zd-navy);
}

.home-service-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-work {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 700px) {
  .home-work { grid-template-columns: 1fr 1fr; }
}

.home-work-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 18rem;
  color: #fff;
  background: var(--zd-navy-deep);
}

.home-work-card img {
  display: block;
  width: 100%;
  height: 22rem;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-work-card:hover img { transform: scale(1.04); }

.home-work-card span {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 1.4rem 1.3rem;
  background: linear-gradient(180deg, transparent, rgba(0, 4, 40, 0.82));
}

.home-work-card small {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zd-purple-soft);
}

.home-work-card strong { font-size: 1.55rem; font-weight: 500; }

.home-steps {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .home-steps { grid-template-columns: repeat(3, 1fr); }
}

.home-steps li {
  border-top: 1px solid rgba(0, 12, 108, 0.14);
  padding-top: 1.1rem;
}

.home-steps span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--zd-purple);
}

.home-steps h3 {
  margin-top: 0.7rem;
  font-size: 1.45rem;
  color: var(--zd-navy);
}

.home-steps p {
  margin-top: 0.55rem;
  color: var(--zd-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.home-steps small {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zd-purple);
}

.page-home main {
  background:
    linear-gradient(rgba(0, 12, 108, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 12, 108, 0.04) 1px, transparent 1px),
    #f7f6f8;
  background-size: 84px 84px, 84px 84px, auto;
}

.page-home .btn,
.home-bar .btn { border-radius: 999px; }

.antra-head {
  display: grid;
  gap: 1.2rem;
  align-items: start;
  margin-bottom: 2.4rem;
}

@media (min-width: 900px) {
  .antra-head { grid-template-columns: 0.42fr 1.58fr; }
}

.antra-head > div > p {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--zd-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-intro { padding-top: 4.5rem; }

.antra-trust {
  position: relative;
  z-index: 4;
  margin-top: -3.2rem;
}

.antra-trust-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 800px) {
  .antra-trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.antra-trust article {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.15rem 1.1rem;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 22px 40px -30px rgba(0, 12, 108, 0.55);
}

.antra-trust span { color: var(--zd-purple); }

.antra-trust strong {
  display: block;
  color: var(--zd-navy);
  font-size: 1rem;
}

.antra-trust p {
  margin-top: 0.2rem;
  color: var(--zd-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.antra-cards-wrap { padding: 1rem 0 3.5rem; }

.antra-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .antra-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .antra-cards { grid-template-columns: repeat(3, 1fr); }
}

.antra-card {
  padding: 1.5rem 1.4rem 1.35rem;
  border-radius: 1.45rem;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(0, 12, 108, 0.55);
}

.antra-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.antra-card h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--zd-navy);
}

.antra-card-top span { color: var(--zd-purple); }

.antra-card p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 12, 108, 0.08);
  color: var(--zd-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.home-intro-band { align-items: stretch; }

.home-intro-photo {
  margin: 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
}

.home-intro-photo img { border-radius: 1.5rem; min-height: 22rem; }

.antra-services,
.antra-work,
.antra-process { padding: 4.5rem 0; }

.home-service-row.is-open strong { color: var(--zd-purple); }

.home-service-go {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 12, 108, 0.16);
  color: var(--zd-navy);
}

.home-service-row.is-open .home-service-go {
  background: var(--zd-purple);
  border-color: var(--zd-purple);
  color: #fff;
}

.home-work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 22rem);
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
}

.home-work-card {
  position: relative;
  display: block;
  min-height: 0;
  scroll-snap-align: start;
  color: var(--zd-navy);
  background: transparent;
}

.home-work-card img {
  display: block;
  width: 100%;
  height: 24rem;
  object-fit: cover;
  border-radius: 1.6rem;
}

.home-work-card small {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--zd-navy);
  padding: 0.35rem 0.75rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-work-card strong {
  display: block;
  margin-top: 0.85rem;
  font-size: 1.25rem;
  color: var(--zd-navy);
}

.home-work-card span { position: static; background: none; padding: 0; }

.antra-process-rail {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .antra-process-rail { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .antra-process-rail { grid-template-columns: repeat(3, 1fr); }
}

.antra-process-rail li {
  position: relative;
  overflow: hidden;
  min-height: 13rem;
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(0, 12, 108, 0.5);
}

.antra-process-rail b {
  position: absolute;
  right: 0.7rem;
  bottom: -0.6rem;
  font-size: 4.6rem;
  line-height: 1;
  font-weight: 500;
  color: rgba(0, 12, 108, 0.08);
}

.antra-process-rail h3 {
  position: relative;
  font-size: 1.3rem;
  color: var(--zd-navy);
}

.antra-process-rail h3 span { color: var(--zd-purple); }

.antra-process-rail p {
  position: relative;
  margin-top: 0.7rem;
  color: var(--zd-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.antra-process-rail small {
  position: relative;
  display: block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zd-purple);
}

.page-home .card { border-radius: 1.35rem; }

/* Respect reduced-motion preferences across every animation above. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-slide,
  .hero-slide.is-active .hero-slide-img,
  .projects-hero-img,
  .projects-hero-scroll-line {
    animation: none !important;
    transition: none !important;
  }

  .parallax-media {
    top: 0 !important;
    height: 100% !important;
    transform: none !important;
    will-change: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header, .site-footer, .to-top, .lightbox { display: none !important; }
  body { background: #fff; }
}
