/* ============================================================
   Homepage "Selected Work" (sticky stacked covers + View Work cursor)
   (Creative Services lives in css/home-services.css.)
   Ported from the swft2027 / ARAISE design (branch swft-araise-2027,
   css/home-araise.css + css/araise-theme.css), recoloured for the main
   site: black background, white text, cyan accent.
   Pair with js/home-work-stack.js.
   ============================================================ */

.ar-section {
  --bg: var(--black, #010101);
  --fg: #ffffff;
  --muted: #8a8a8a;
  --border: rgba(255, 255, 255, 0.14);
  --ghost: rgba(255, 255, 255, 0.4);
  --accent: var(--green, #56b4e9);
  --accent-ink: #010101;
  --ar-display: var(--swft-font-display, "Inter Tight", Inter, system-ui, sans-serif);
  --ar-font: var(--swft-font, "Inter Tight", Inter, system-ui, sans-serif);
  --ar-mono: var(--swft-font-mono, "Space Mono", monospace);
  --ar-header-h: var(--sn-height, 62px);
  --ar-gutter: clamp(1.25rem, 4vw, 2.5rem);

  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ar-font);
  border-top: 1px solid var(--border);
}

.ar-container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: var(--ar-gutter);
}

.ar-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-family: var(--ar-mono);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
}

.ar-section-label span {
  white-space: nowrap;
}

.home-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.ar-mega {
  margin: 0;
  font-family: var(--ar-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--fg);
}

/* Outlined second word */
.ar-mega .ghost {
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost);
  font-weight: 600;
}

.ar-lead {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.65;
  color: var(--muted);
}

.ar-thin {
  font-weight: 300;
}

.ar-mark {
  font-weight: 700;
  color: var(--accent);
}

.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ar-btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.ar-btn:hover,
.ar-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.ar-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

/* ---------- Selected Work: sticky stacked covers ---------- */
.ar-work-stack-head {
  margin-bottom: 1.25rem;
}

.ar-work-pointer-wrap {
  position: relative;
  max-width: 1060px;
  margin-inline: auto;
  padding-inline: var(--ar-gutter);
}

.ar-works-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Each cover sticks under the nav, so the next one slides up over it */
.ar-work-item-wrap {
  position: sticky;
  top: calc(var(--ar-header-h) + 1.25rem);
  z-index: 1;
}

.ar-work-stack-item {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.ar-work-stack-item:hover,
.ar-work-stack-item:focus-visible {
  border-color: var(--accent);
}

.ar-work-stack-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ar-work-cover {
  display: block;
  width: 100%;
  height: clamp(320px, 55vh, 586px);
  object-fit: cover;
  object-position: center top;
}

.ar-work-title-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.ar-work-title {
  font-family: var(--ar-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.ar-work-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-family: var(--ar-mono);
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

/* "View Work" circle that follows the cursor over the covers (desktop, fine pointer) */
.ar-pointer-work {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(86, 180, 233, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(86, 180, 233, 0.55);
  color: #fff;
  font-family: var(--ar-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform;
}

.ar-pointer-work span {
  padding: 0.5rem;
  text-align: center;
}

.ar-work-more {
  margin-top: 1.5rem;
  text-align: right;
}

@media (max-width: 900px), (pointer: coarse) {
  .ar-pointer-work {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .home-about-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ar-pointer-work {
    display: none !important;
  }

  .ar-work-stack-head {
    opacity: 1 !important;
  }

  .ar-btn,
  .ar-arrow {
    transition: none;
  }
}
