/* ============================================
   GUIDE + PROOF SECTION
   ============================================ */
.guide {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: clamp(5.5rem, 13vh, 9rem) 0;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}

/* Soft warm glow top-left, cool teal bottom-right */
.guide__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(ellipse 60% 45% at 12% 6%,
      rgba(251, 133, 0, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 65% 45% at 90% 92%,
      rgba(33, 158, 188, 0.08) 0%, transparent 65%);
}

/* ---------- Intro ---------- */
.guide__intro {
  max-width: 780px;
  margin: 0 auto clamp(4rem, 9vw, 6rem);
  text-align: center;
}

.guide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--secondary);
}

.guide__eyebrow::before,
.guide__eyebrow::after {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.guide__title {
  margin-top: 1.2rem;

  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: #fff;
  text-wrap: balance;
}

.guide__lead {
  margin-top: 1.5rem;

  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.72;
  color: var(--text-muted);
  text-wrap: pretty;
}

.guide__lead strong {
  color: var(--primary);
  font-weight: 600;
}

/* ---------- Block wrapper (projects / clients) ---------- */
.guide__block {
  margin-top: clamp(4rem, 9vw, 6rem);
}

.guide__block-head {
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.guide__block-title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: #fff;
}

.guide__block-sub {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ---------- Projects grid ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.project {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.4s var(--ease-out);
}

.project:hover { transform: translateY(-6px); }

/* Browser frame */
.project__frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, 0.95);
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow   0.4s var(--ease-out);
}

.project:hover .project__frame {
  border-color: rgba(251, 133, 0, 0.35);
  box-shadow:
    0 22px 55px -20px rgba(251, 133, 0, 0.4),
    0 0 0 1px rgba(251, 133, 0, 0.1);
}

.project__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-soft);
}

.project__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.85;
}

.project__bar span:nth-child(1) { background: var(--primary); }
.project__bar span:nth-child(2) { background: var(--secondary); }
.project__bar span:nth-child(3) { background: var(--accent-1); }

/* Screenshot slot — placeholder gradient, real image layered on top */
.project__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg,
      rgba(251, 133, 0, 0.1) 0%,
      rgba(33, 158, 188, 0.1) 100%),
    var(--surface-2);
}

.project__shot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--shot);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  transition: transform 0.7s var(--ease-out);
}

.project:hover .project__shot::before { transform: scale(1.035); }

/* Meta */
.project__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.05rem;
  padding-inline: 0.25rem;
}

.project__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: #fff;
}

.project__tag {
  display: block;
  margin-top: 0.2rem;

  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.project__arrow {
  flex: none;
  font-size: 1.15rem;
  color: var(--primary);
  opacity: 0.7;
  transition:
    transform 0.3s var(--ease-out),
    opacity   0.3s var(--ease-out);
}

.project:hover .project__arrow {
  transform: translateX(5px);
  opacity: 1;
}

/* ---------- Client logo strip ---------- */
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);

  list-style: none;
  padding: 0;
  margin: 0;
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 5 / 2;
  padding: 1rem;

  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.015);

  transition:
    border-color 0.35s var(--ease-out),
    background   0.35s var(--ease-out);
}

.client:hover {
  border-color: rgba(33, 158, 188, 0.28);
  background: rgba(33, 158, 188, 0.04);
}

.client img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;

  filter: grayscale(1) brightness(1.6);
  opacity: 0.55;

  transition:
    filter  0.35s var(--ease-out),
    opacity 0.35s var(--ease-out);
}

.client:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}

.client__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  text-align: center;

  transition: color 0.35s var(--ease-out);
}

.client:hover .client__name { color: var(--text); }

/* ---------- Closing bridge ---------- */
.guide__closing {
  max-width: 780px;
  margin: clamp(4.5rem, 10vw, 7rem) auto 0;
  text-align: center;

  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.guide__closing-accent {
  background: linear-gradient(100deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .clients  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .projects { grid-template-columns: 1fr; gap: 1.5rem; }
  .clients  { grid-template-columns: repeat(2, 1fr); }

  .guide__eyebrow { font-size: 0.66rem; }
  .guide__eyebrow::before,
  .guide__eyebrow::after { width: 1.25rem; }
}