:root{
  --ink:#111;
  --ink-2:#222;
  --muted:#666;
  --line:rgba(0,0,0,.12);
  --paper:#fff;
}

html{ scroll-behavior: smooth; }
section{ scroll-margin-top: 70px; }

/* Prevent horizontal scroll / jitter caused by long words or URLs */
html, body{ overflow-x: hidden; }

body{
  background: var(--paper);
  color: var(--ink);
  letter-spacing: .01em;
  font-size: 16px;
  line-height: 1.65;
}

.container-narrow{ max-width: 980px; }
.hairline{ border-top: 1px solid var(--line); }
.section{ padding: 60px 0; }

.kicker{
  text-transform: uppercase;
  font-size: clamp(.72rem, 1.8vw, .8rem);
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .75rem;
}

h1, h2, h3{ letter-spacing: .04em; line-height: 1.2; }

/* Normalize Bootstrap heading utility classes for consistent scale across devices */
.h3{ font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.25; }
.h2{ font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.2; }

/* On small screens, Bootstrap's .fs-5 can feel oversized */
@media (max-width: 576px){
  .fs-5{ font-size: 1.05rem !important; }
}
.small-muted{ color: var(--muted); }

/* Social pill link (clean Instagram display) */
.social-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.social-pill:hover{
  background: rgba(0,0,0,.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.quote{
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.card{
  border: 1px solid var(--line);
  border-radius: 16px;
}

.project-card a{ text-decoration: none; color: inherit; }
.project-card a:hover .project-title{ text-decoration: underline; }

.project-link{ display:block; }

.project-media{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f6f6f6;
}
.project-media img{
  width: 100%;
  height: 210px;
  object-fit: cover;
  display:block;
}

.project-card{
  transition: transform .15s ease, box-shadow .15s ease;
}
.project-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
}

.img-placeholder{
  background: #f6f6f6;
  border: 1px solid var(--line);
  border-radius: 14px;
  height: 180px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  font-size: .9rem;
}

/* =========================
   QR BLOCK (UPDATED)
   ========================= */

.qr-wrap{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;                  /* slightly more breathing space */
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  background: #fff;
  max-width: 420px;
}

/* Bigger + crisp rendering */
.qr-img{
  width: 240px;                   /* was 170px */
  height: 240px;
  object-fit: contain;
  image-rendering: auto;          /* IMPORTANT: remove pixelated for QR */
  -ms-interpolation-mode: nearest-neighbor;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 8px;                   /* gives quiet frame; helps scanning */
  background: #fff;
}

/* Mobile: keep it big but not overflowing */
@media (max-width: 991px){
  .qr-img{
    width: 220px;
    height: 220px;
  }
}

/* Buttons */
.btn-ink{
  background: #111 !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 500;
}
.btn-ink:hover{ background:#000 !important; }

.btn-outline-ink{
  border-color: #111 !important;
  color: #111 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 500;
}
.btn-outline-ink:hover{
  background:#111 !important;
  color:#fff !important;
}

/* NAVBAR (no logo; compact utility rail) */
.navbar-compact{
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
.navbar-sticky{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
}

.nav-rail{
  gap: 14px;
  justify-content: center;
}

.navbar-nav .nav-link{
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 2px 6px !important;
  line-height: 1.05;
}
.navbar-nav .nav-link:hover{ color: var(--ink); }

.navbar-nav .nav-link.is-active{
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.back-to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--ink);
  text-decoration:none;
  box-shadow: 0 12px 28px rgba(0,0,0,.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  transform: translateY(6px);
  z-index: 2000;
}
.back-to-top.is-visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover{ background:#fff; }

/* HERO */
.hero{
  padding: 52px 0 56px;
  background: linear-gradient(to bottom, #fff, #fbfbfb);
}

.hero-top{ margin-bottom: 18px; }

/* Logo above SCRAB (doubled) */
.hero-logo-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom: 22px;
}

.hero-logo{
  height: 172px;
  width: auto;
  display:block;
  max-width: min(520px, 90vw);
}

.hero-title{
  font-weight: 600;
  letter-spacing: .32em;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.hero-subtitle-primary{
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .95rem;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.hero-subtitle-secondary{
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-divider{
  width: 120px;
  height: 1px;
  background: var(--line);
  margin: 0 auto;
}

/* Two-column hero content */
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: start;
}

.hero-left{ text-align: left; }

.hero-headline{
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-bullets{
  margin: 0 0 12px 0;
  padding-left: 18px;
  color: var(--ink-2);
}
.hero-bullets li{ margin-bottom: 8px; }

.hero-lead{
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0;
  max-width: 62ch;
}

.hero-micro{
  color: var(--muted);
  font-size: .92rem;
}

/* Pillars */
.pillars{ display: grid; gap: 12px; }
.pillar-title{
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 4px;
}
.hero-trustline{
  color: var(--muted);
  font-size: .92rem;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* Responsive */
@media (max-width: 991px){
  .nav-rail{ gap: 10px; }
  .hero{ padding: 44px 0 48px; }

  .hero-logo{
    height: 132px;
    max-width: 90vw;
  }

  .hero-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 576px){
  .section{ padding: 44px 0; }
  .hero-title{ letter-spacing: .2em; }
  .hero-headline{ font-size: 1.1rem; }
  .hero-lead{ font-size: 1rem; }
  .navbar-nav .nav-link{ font-size: .74rem; }
}

footer{
  padding: 26px 0 40px;
  color: var(--muted);
}
/* =========================
   AT A GLANCE – SINGLE IMAGE
   ========================= */

.at-glance-image-wrap{
  width: 100%;
  max-width: 70%;              /* reduces overall size */
  margin: 0 auto 12px;         /* centers image */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f6f6f6;
}

/* Image sizing control */
.at-glance-image{
  width: 100%;
  height: 70%;
  display: block;
  object-fit: contain;         /* IMPORTANT: no cropping */
  max-height: 360px;           /* KEY: controls visual size */
}

/* Mobile adjustment */
@media (max-width: 768px){
  .at-glance-image-wrap{
    max-width: 100%;
  }
  .at-glance-image{
    max-height: 280px;
  }
}




/* Mobile typography normalization */
@media (max-width: 576px){
  body{ font-size: 15.5px; }
  .hero-title{ font-size: clamp(1.9rem, 7vw, 2.5rem); letter-spacing: .22em; }
  .quote{ font-size: 1.02rem; }
  .hero-headline{ font-size: 1.12rem; }
}


/* ---------- Impact: colored subheadings ---------- */
.impact-card{ position: relative; overflow: hidden; }

.impact-kicker{
  display: inline-block;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: .76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
}

.impact-value{
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 10px;
  line-height: 1.35;
}

/* Thin top bar */
.impact-card::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 4px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: rgba(0,0,0,.10);
}

/* Subtle palette */
.impact-green  .impact-kicker{ color:#0a7a3b; background: rgba(10,122,59,.10); }
.impact-green::before{ background: rgba(10,122,59,.35); }

.impact-blue   .impact-kicker{ color:#0b5ed7; background: rgba(11,94,215,.10); }
.impact-blue::before{ background: rgba(11,94,215,.35); }

.impact-amber  .impact-kicker{ color:#b45309; background: rgba(180,83,9,.12); }
.impact-amber::before{ background: rgba(180,83,9,.32); }

.impact-purple .impact-kicker{ color:#6f42c1; background: rgba(111,66,193,.12); }
.impact-purple::before{ background: rgba(111,66,193,.30); }

.impact-teal   .impact-kicker{ color:#0f766e; background: rgba(15,118,110,.12); }
.impact-teal::before{ background: rgba(15,118,110,.32); }

.impact-rose   .impact-kicker{ color:#be123c; background: rgba(190,18,60,.12); }
.impact-rose::before{ background: rgba(190,18,60,.30); }

/* ---------- Animation: reveal on scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease, box-shadow .25s ease;
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Optional: hover lift (desktop) */
@media (hover:hover){
  .impact-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,.06);
  }
}

/* Mobile typography tuning for impact */
@media (max-width: 576px){
  .impact-value{ font-size: 1.15rem; }
  .impact-kicker{ font-size: .72rem; }
}
