/* AL RYUM — Services page (cinematic 3D) — styled on the live site's own tokens.
   Site ink 18,32,35 = #122023 · site gold #C8A86E. Nothing here applies outside /services:
   every rule is scoped to html.ar-services-3d. */

html.ar-services-3d { scroll-behavior: smooth; }

#ar-services-mount {
  --ink: #122023;
  --ink-deep: #0b1618;
  --gold: #C8A86E;
  --text: #f2fbfa;
  --muted: rgba(242, 251, 250, 0.66);
  --hair: rgba(200, 168, 110, 0.34);
  background: var(--ink);
  color: var(--text);
  position: relative;
  z-index: 1;
}

#ar-services-mount * { box-sizing: border-box; }
#ar-services-mount h1,
#ar-services-mount h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }

/* React wraps every route in "min-h-screen bg-white". On this page that white shows around the dark
   content as you scroll, so the route container takes the site ink instead. Scoped to this route only. */
html.ar-services-3d .min-h-screen.bg-white,
html.ar-services-3d .min-h-screen {
  background: #122023 !important;
}

/* ---------- hero ---------- */
#ar-services-mount .ar-s3d-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12vh 6vw;
}
#ar-services-mount .ar-s3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1;
}
#ar-services-mount .ar-s3d-canvas.is-paused { opacity: 0.85; }
/* Gold masterplan linework (the Corniche plan) drifting faintly behind the particles. */
#ar-services-mount .ar-s3d-hero::before {
  content: ""; position: absolute; inset: -4%; z-index: 0; pointer-events: none;
  background: url("/assets/services/hero-masterplan.webp") center 40% / cover no-repeat;
  opacity: 0.4;
  /* calmer behind the heading, full strength toward the edges */
  -webkit-mask-image: radial-gradient(ellipse 42% 34% at 50% 46%, rgba(0, 0, 0, 0.3), #000 100%);
  mask-image: radial-gradient(ellipse 42% 34% at 50% 46%, rgba(0, 0, 0, 0.3), #000 100%);
  animation: ar-s3d-plan 38s ease-in-out infinite alternate;
}
@keyframes ar-s3d-plan {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.07) translate3d(-1.5%, -1%, 0); }
}
@media (prefers-reduced-motion: reduce) { #ar-services-mount .ar-s3d-hero::before { animation: none; } }
#ar-services-mount .ar-s3d-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(18, 32, 35, 0) 28%, rgba(11, 22, 24, 0.86) 100%);
}
#ar-services-mount .ar-s3d-hero-inner {
  position: relative; z-index: 3; text-align: center; max-width: 780px;
}
#ar-services-mount .ar-s3d-eyebrow {
  display: block; color: var(--gold); letter-spacing: 0.36em; text-transform: uppercase;
  font-size: clamp(13px, 1.1vw, 16px); font-weight: 600; margin-bottom: 1.1rem;
}
#ar-services-mount .ar-s3d-hero h1 {
  font-size: clamp(42px, min(7vw, 10.8vh), 92px); line-height: 1.02; margin: 0 0 1rem;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}
#ar-services-mount .ar-s3d-hero p {
  color: var(--muted); font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.75; margin: 0 auto; max-width: 620px;
}
#ar-services-mount .ar-s3d-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: var(--gold); font-size: 10.5px; letter-spacing: 0.4em; text-transform: uppercase;
  animation: ar-s3d-bob 2.6s ease-in-out infinite;
}
@keyframes ar-s3d-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* ---------- shared type ---------- */
#ar-services-mount .ar-s3d-tag {
  display: block; color: var(--gold); font-size: 10.5px; letter-spacing: 0.36em; text-transform: uppercase;
  margin-bottom: 1rem;
}
#ar-services-mount .ar-s3d-intro {
  max-width: 900px; margin: 0 auto; padding: 12vh 6vw 6vh; text-align: center;
}
#ar-services-mount .ar-s3d-intro h2 { font-size: clamp(28px, 3.4vw, 50px); margin: 0 0 1rem; }
#ar-services-mount .ar-s3d-intro p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 auto; max-width: 660px; }

/* ---------- scenes ---------- */
#ar-services-mount .ar-s3d-scene { padding: 7vh 6vw; }
#ar-services-mount .ar-s3d-scene-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: center; max-width: 1240px; margin: 0 auto;
}
#ar-services-mount .ar-s3d-copy h2 { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.16; margin: 0 0 1rem; }
#ar-services-mount .ar-s3d-copy p { color: var(--muted); font-size: 15.5px; line-height: 1.85; margin: 0 0 1.4rem; }
#ar-services-mount .ar-s3d-link {
  display: inline-block; color: var(--gold); text-decoration: none; font-size: 11.5px;
  letter-spacing: 0.26em; text-transform: uppercase; border-bottom: 1px solid var(--hair); padding-bottom: 4px;
}
#ar-services-mount .ar-s3d-link:hover { color: #f2fbfa; border-color: var(--gold); }

#ar-services-mount .ar-s3d-media {
  margin: 0; border: 1px solid var(--hair); border-radius: 10px; overflow: hidden;
  background: linear-gradient(150deg, #16292c, var(--ink-deep) 65%, #1b3236);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}
#ar-services-mount .ar-s3d-media img {
  display: block; width: 100%; height: clamp(230px, 30vw, 400px); object-fit: cover; background: var(--ink-deep);
}
#ar-services-mount .ar-s3d-media figcaption {
  padding: 0.7rem 0.95rem; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  border-top: 1px solid var(--hair);
}
/* an image that has not been generated yet must never show a torn frame */
#ar-services-mount .ar-s3d-media.no-image img { display: none; }
#ar-services-mount .ar-s3d-media.no-image { min-height: 260px; }

/* ---------- cards ---------- */
#ar-services-mount .ar-s3d-cards { padding: 12vh 6vw 8vh; text-align: center; max-width: 1300px; margin: 0 auto; }
#ar-services-mount .ar-s3d-cards h2 { font-size: clamp(26px, 3.2vw, 46px); margin: 0 0 0.9rem; }
#ar-services-mount .ar-s3d-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; margin-top: 2.6rem;
}
#ar-services-mount .ar-s3d-card {
  position: relative; text-align: left; text-decoration: none; color: inherit;
  padding: 26px 24px 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px;
  background: linear-gradient(160deg, rgba(22, 41, 44, 0.9), rgba(11, 22, 24, 0.95));
  display: flex; flex-direction: column; gap: 0.6rem; min-height: 210px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
#ar-services-mount .ar-s3d-card:hover { border-color: var(--gold); transform: translateY(-4px); }
#ar-services-mount .ar-s3d-num {
  position: absolute; top: 20px; right: 22px; color: var(--gold); font-size: 12px; letter-spacing: 0.2em;
}
#ar-services-mount .ar-s3d-card-title {
  font-family: "DM Serif Display", Georgia, serif; font-size: 21px; line-height: 1.2; padding-right: 34px;
}
#ar-services-mount .ar-s3d-card-line { color: var(--muted); font-size: 13.5px; line-height: 1.65; }
#ar-services-mount .ar-s3d-card-cta {
  margin-top: auto; color: var(--gold); font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase;
}

/* ---------- closing cta ---------- */
#ar-services-mount .ar-s3d-cta {
  text-align: center; padding: 10vh 6vw 12vh; border-top: 1px solid var(--hair);
}
#ar-services-mount .ar-s3d-cta h2 { font-size: clamp(24px, 2.8vw, 40px); margin: 0 0 1.6rem; }
#ar-services-mount .ar-s3d-btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px; text-decoration: none;
  background: var(--gold); color: #0b1618; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
}
#ar-services-mount .ar-s3d-btn:hover { background: #f2fbfa; }

/* ---------- reveal ---------- */
#ar-services-mount .ar-s3d-scene,
#ar-services-mount .ar-s3d-card { opacity: 0; transform: translateY(26px); }
#ar-services-mount .ar-s3d-scene.is-in,
#ar-services-mount .ar-s3d-card.is-in { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.8s ease; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  #ar-services-mount .ar-s3d-scene-inner { grid-template-columns: 1fr; gap: 26px; }
  #ar-services-mount .ar-s3d-scene-inner .ar-s3d-media { order: -1; }
  #ar-services-mount .ar-s3d-hero { min-height: 76vh; }
}

/* ---------- reduced motion: no particles, no movement, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  #ar-services-mount .ar-s3d-canvas { display: none; }
  #ar-services-mount .ar-s3d-hero {
    background: linear-gradient(150deg, #16292c, var(--ink-deep) 70%);
  }
  #ar-services-mount .ar-s3d-hint { animation: none; }
  #ar-services-mount .ar-s3d-scene,
  #ar-services-mount .ar-s3d-card { opacity: 1; transform: none; transition: none; }
  #ar-services-mount .ar-s3d-media { transition: none; }
}
