/* ============================================
   GUIDE + PROOF SECTION — LIGHT MODE
   ============================================ */

.guide {
  /* Brand colors (respects your existing vars, falls back to palette) */
  --g-primary:   var(--primary,   #fb8500);
  --g-secondary: var(--secondary, #ffb703);
  --g-accent-1:  var(--accent-1,  #219ebc);
  --g-accent-2:  var(--accent-2,  #023047);

  /* Light neutrals */
  --g-bg:          #fafbfc;
  --g-surface:     #ffffff;
  --g-surface-2:   #f8fafc;
  --g-text:        #0f172a;
  --g-muted:       #4b5563;
  --g-dim:         #64748b;
  --g-border:      #e5e7eb;
  --g-border-soft: #f1f5f9;

  /* Type */
  --g-font-display: var(--font-display, 'Space Grotesk', system-ui, sans-serif);
  --g-font-body:    var(--font-body, 'Inter', system-ui, sans-serif);

  /* Radius + motion */
  --g-radius: 14px;
  --g-ease:   cubic-bezier(0.2, 0.7, 0.3, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;

  padding: clamp(4.5rem, 11vh, 8rem) 0;
  background: var(--g-bg);
  color: var(--g-text);
  font-family: var(--g-font-body);
  border-top: 1px solid var(--g-border-soft);
}

/* Very soft warm/cool tints in the corners */
.guide__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: transparent;
}

/* ============================================
   INTRO
   ============================================ */
   
 section.guide-section {
     width: 80%; 
     margin: 0 auto;
     box-sizing: border-box;
     background: transparent;
 }
.guide__intro {
  max-width: 780px;
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  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(--g-primary);
}

.guide__eyebrow::before,
.guide__eyebrow::after {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.guide__title {
  margin-top: 1.2rem;

  font-family: var(--g-font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: var(--g-text);
  text-wrap: balance;
}

.guide__lead {
  margin-top: 1.5rem;

  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.72;
  color: var(--g-muted);
  text-wrap: pretty;
}

.guide__lead strong {
  color: var(--g-primary);
  font-weight: 600;
}

/* ============================================
   BLOCK HEADERS  ("A look at what we've built" / "Businesses we've worked with")
   ============================================ */
.guide__block {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.guide__block-head {
  max-width: 640px;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.guide__block-title {
  font-family: var(--g-font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--g-text);
}

.guide__block-sub {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--g-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(--g-ease);
}

.project:hover {
  transform: translateY(-6px);
}

/* Browser frame */
.project__frame {
  position: relative;
  border: 1px solid var(--g-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--g-surface);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -14px rgba(15, 23, 42, 0.1);
  transition:
    border-color 0.4s var(--g-ease),
    box-shadow   0.4s var(--g-ease);
}

.project:hover .project__frame {
  border-color: rgba(251, 133, 0, 0.45);
  box-shadow:
    0 6px 18px -10px rgba(15, 23, 42, 0.12),
    0 0 40px -12px rgba(251, 133, 0, 0.45);
}

/* Fake browser bar with brand-colored dots */
.project__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--g-surface-2);
  border-bottom: 1px solid var(--g-border);
}

.project__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.project__bar span:nth-child(1) { background: var(--g-primary); }
.project__bar span:nth-child(2) { background: var(--g-secondary); }
.project__bar span:nth-child(3) { background: var(--g-accent-1); }

/* Screenshot slot — placeholder shown while image loads / if missing */
.project__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      rgba(251, 133, 0, 0.07) 0%,
      rgba(33, 158, 188, 0.07) 100%),
    var(--g-surface-2);
}

/* The actual screenshot, loaded from --shot set in the PHP */
.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(--g-ease);
}

.project:hover .project__shot::before {
  transform: scale(1.035);
}

/* Meta row */
.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(--g-font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.3;
  color: var(--g-text);
}

.displace__up {
  margin-top: -10px;
}

.project__tag {
  display: block;
  margin-top: 0.2rem;

  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g-dim);
}

.project__arrow {
  flex: none;
  font-size: 1.15rem;
  color: var(--g-primary);
  opacity: 0.75;
  transition:
    transform 0.3s var(--g-ease),
    opacity   0.3s var(--g-ease);
}

.project:hover .project__arrow {
  transform: translateX(5px);
  opacity: 1;
}

/* ============================================
   CLIENT LOGO STRIP
   ============================================ */
.clients {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 1.75vw, 1.1rem);

  list-style: none;
  padding: 0;
  margin: 0;
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;

  aspect-ratio: 5 / 2;
  padding: 0.9rem;

  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  background: var(--g-surface);

  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);

  transition:
    border-color 0.35s var(--g-ease),
    background   0.35s var(--g-ease),
    box-shadow   0.35s var(--g-ease);
}

.client:hover {
  border-color: rgba(33, 158, 188, 0.4);
  background: var(--g-surface-2);
  box-shadow: 0 4px 14px -8px rgba(33, 158, 188, 0.25);
}

.client img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.85;

  transition:
    filter  0.35s var(--g-ease),
    opacity 0.35s var(--g-ease);
}

.client:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.client__name {
  font-family: var(--g-font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--g-dim);
  text-align: center;

  transition: color 0.35s var(--g-ease);
}

.client:hover .client__name {
  color: var(--g-text);
}

/* ============================================
   CLOSING BRIDGE
   ============================================ */
.guide__closing {
  max-width: 780px;
  margin: clamp(4rem, 9vw, 6rem) auto 0;
  text-align: center;

  font-family: var(--g-font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--g-text);
  text-wrap: balance;
}

.guide__closing-accent {
  background: linear-gradient(100deg, var(--g-primary) 0%, var(--g-secondary) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .clients {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 960px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .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);
    gap: 0.75rem;
  }

  .guide__eyebrow {
    font-size: 0.66rem;
  }

  .guide__eyebrow::before,
  .guide__eyebrow::after {
    width: 1.25rem;
  }

  .client {
    aspect-ratio: 4 / 2;
    padding: 0.75rem;
  }
}

/* Reduce logo-wall intensity for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .client img,
  .project__shot::before,
  .project,
  .project__frame {
    transition-duration: 0.01ms;
  }
}