/* ==========================================================
   Traceback-Technology - main stylesheet
   One file for all pages so everything stays consistent
   ========================================================== */

/* ---------- Colours and basic settings ---------- */
:root {
  /* mostly white and light blue, navy only as a supporting colour */
  --white: #ffffff;
  --off-white: #f5f8fc;
  --sky-50: #eaf3fc;
  --sky-100: #d6e8f9;
  --sky-200: #b3d3f0;
  --blue-500: #3b82c4;
  --blue-600: #2a6fb5;
  --blue-700: #1f5a96;
  --navy: #0e2742;
  --navy-soft: #1d3b5e;
  --cyan: #151718;       /* bright accent, only for small details */
  --cyan-text: #0a7488;  /* darker cyan so text on white is readable */
  --text: #17304d;
  --text-muted: #4a5f78;

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 10px 30px rgba(14, 39, 66, 0.09);

  --radius: 10px;      /* was 18px: softer-than-boxy but no longer bubble-like */
  --radius-sm: 6px;    /* was 10px */
  --max-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--off-white);
  /* soft blue glows behind the page so the glass cards have something to blur */
  background-image:
    radial-gradient(circle at 12% 8%, rgba(143, 191, 234, 0.45), transparent 38%),
    radial-gradient(circle at 90% 30%, rgba(25, 194, 222, 0.16), transparent 34%),
    radial-gradient(circle at 20% 75%, rgba(179, 211, 240, 0.4), transparent 38%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-700); }
a:hover { color: var(--navy); }

h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

/* keyboard focus - visible on everything clickable */
:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 6px;
}

/* skip link for keyboard users */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9); /* fallback if blur isn't supported */
  border-bottom: 1px solid var(--sky-100);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}
.brand-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover;  }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }

.site-nav ul {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
}
.site-nav a:hover { background: var(--sky-50); color: var(--navy); }
/* current page */
.site-nav a[aria-current="page"] {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: rgba(214, 232, 249, 0.22); border-block: 1px solid var(--sky-100); }

.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-text);
}
.lead { font-size: 1.12rem; color: var(--text-muted); }

/* ---------- Glass cards ---------- */
.glass {
  background: rgba(255, 255, 255, 0.88); /* solid-ish fallback */
  border: 1px solid var(--sky-100);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
}

.card { padding: 1.7rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.card .icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  color: var(--blue-700);
  margin-bottom: 1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card p:last-child { margin-bottom: 0; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
/* faint grid lines for the tech feel. The fade-out lives on this layer only,
   so it never fades the app screens sitting on top of it */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 111, 181, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 111, 181, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, #000 75%, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 span { color: var(--blue-600); }
.hero .lead { max-width: 540px; margin-bottom: 1.8rem; }

.hero-panel { padding: 1.5rem; }
.hero-panel .panel-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-text);
  margin-bottom: 0.4rem;
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  padding-block: clamp(2.5rem, 6vw, 4rem) 1rem;
}
.page-banner p { max-width: 680px; font-size: 1.1rem; color: var(--text-muted); }

/* ---------- Featured project ---------- */
.featured {
  padding: clamp(1.6rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  /* a slightly deeper blue so it stands out from the rest */
  background: linear-gradient(135deg, rgba(31, 90, 150, 0.95), rgba(14, 39, 66, 0.95));
  color: var(--white);
  border: none;
}
.featured h2, .featured h3 { color: var(--white); }
.featured .eyebrow { color: #8fe6f4; }
.featured p { color: #dbe8f6; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.5rem; }
.chip {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

/* ---------- Products page ---------- */
.project-overview { padding: clamp(1.6rem, 4vw, 2.6rem); }
.project-overview .quote {
  font-size: 1.2rem;
  color: var(--navy);
  border-left: 4px solid var(--cyan);
  padding-left: 1rem;
  margin: 1rem 0 0;
}

/* shows that BC Ways and BC Eats sit inside the ecosystem */
.ecosystem {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--sky-200);
  background: rgba(234, 243, 252, 0.55);
}
.ecosystem-label {
  position: absolute;
  top: -0.9rem;
  left: 1.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.ecosystem .card-grid { grid-template-columns: repeat(2, 1fr); margin-top: 0.6rem; }

.component h3 { display: flex; align-items: center; gap: 0.6rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: var(--sky-100);
  color: var(--blue-700);
}
.component ul { padding-left: 1.2rem; margin: 0.8rem 0 0; color: var(--text-muted); }
.component li { margin-bottom: 0.35rem; }
.note { font-size: 0.93rem; color: var(--text-muted); margin-top: 1rem; }

/* video + feedback sections, ready to extend later */
.media-frame { overflow: hidden; padding: 0.6rem; }
.media-frame video { width: 100%; border-radius: 12px; background: var(--navy); }

/* future ideas - kept small and quiet on purpose */
.future { padding: 1.5rem 1.7rem; }
.future ul { margin: 0.6rem 0 0; padding-left: 1.2rem; color: var(--text-muted); }
.future li { margin-bottom: 0.35rem; }

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
  padding: 0.8rem 0 0.8rem 2rem;
  position: relative;
  border-bottom: 1px solid var(--sky-100);
}
.about-list li:last-child { border-bottom: none; }
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--sky-100);
}

/* ---------- Team page ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.team-card {
  padding: 1.6rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.avatar {
  width: 130px;
  height: 130px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.4rem;
  background: var(--sky-50);
  border: 3px solid var(--white);
  box-shadow: 0 6px 16px rgba(14, 39, 66, 0.12);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.photo-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.role {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--sky-50);
  color: var(--blue-700);
  border: 1px solid var(--sky-200);
}
.role.lead-role { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Component cards that can link out ---------- */
/* .card-link is only used when a real download/access URL exists (see products.html comments) */
.card-link { display: block; text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 39, 66, 0.14); color: inherit; }
.card-link .go { display: inline-block; margin-top: 0.9rem; font-weight: 700; color: var(--blue-700); }

/* chips that are links (home page) */
a.chip { text-decoration: none; transition: background-color 0.15s ease; }
a.chip:hover { background: rgba(255, 255, 255, 0.28); color: var(--white); }
a.role { text-decoration: none; }
a.role:hover { background: var(--sky-100); color: var(--navy); }

/* ---------- Reviews (What Users Are Saying) ---------- */
.reviews { margin-top: 2.4rem; padding: clamp(1.5rem, 4vw, 2.4rem); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.2rem; }
.review-empty {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--sky-200);
  background: rgba(234, 243, 252, 0.5);
  color: var(--text-muted);
}
.review-empty p { margin: 0; }

/* ---------- Showcase page ---------- */
.showcase-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.showcase-split .card h3 { margin-bottom: 0.5rem; }
.media-slot { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.status-line { font-size: 0.95rem; color: var(--text-muted); }

/* ---------- Call to action band ---------- */
.cta { padding: clamp(1.8rem, 4vw, 3rem); text-align: center; }
.cta p { max-width: 560px; margin-inline: auto; margin-bottom: 1.4rem; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c9d8ea;
  padding-block: 1.8rem;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.footer-brand { font-weight: 700; color: var(--white); }
.site-footer p { margin: 0; font-size: 0.93rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .hero-inner, .featured, .about-grid { grid-template-columns: 1fr; }
  .ecosystem .card-grid, .showcase-split { grid-template-columns: 1fr; }

  /* no JS menu: the links just wrap under the logo on smaller screens */
  .header-inner { flex-wrap: wrap; justify-content: center; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; }
  .site-nav a { padding: 0.45rem 0.8rem; font-size: 0.93rem; }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.02rem; }
  .btn { width: 100%; text-align: center; }
  .site-nav a { padding: 0.4rem 0.65rem; font-size: 0.88rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Feedback form ---------- */
.feedback { padding: clamp(1.6rem, 4vw, 2.6rem); max-width: 760px; margin-inline: auto; }
.form { display: grid; gap: 1.1rem; margin-top: 1.2rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 1px; }
.form .btn { justify-self: start; cursor: pointer; }
.form .btn:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-status.success { color: #146c43; }
.form-status.error { color: #a12a2a; }
.form-status.info { color: var(--text-muted); }
/* honeypot field: off-screen so people never see it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form .btn { justify-self: stretch; } }

/* ---------- Team portraits ----------
   Every photo is framed so the head is about the same size and position as Anele's.
   Each photo gets its own size/offset (--w, --l, --t) because the originals are framed differently.
   The img keeps its natural proportions (height:auto), so nothing is stretched. */
.avatar img.portrait { position: absolute; max-width: none; height: auto; object-fit: initial; width: var(--w); left: var(--l); top: var(--t); filter: none; }
.portrait-anele { --w: 118.2%; --l: -6.8%; --t: 0.0%; }
.portrait-dzanga { --w: 136.5%; --l: -18.9%; --t: -8.6%; }
.portrait-mufunwa { --w: 107.3%; --l: -3.7%; --t: 0.0%; }
.portrait-arnold { --w: 100.0%; --l: 0.0%; --t: 14.0%; }
.portrait-puleng { --w: 100.0%; --l: 0.0%; --t: 0.0%; }
.portrait-tetelo { --w: 100.0%; --l: 0.0%; --t: -7.0%; }
/* Arnold's photo has a plain white backdrop, so the circle is filled with the same white above his head */
.avatar-arnold { background: #fefefe; }


/* =============================================================
   Visual refinement (supervisor feedback)
   Same colours, font and logo. Less bubbly, more deliberate:
   smaller radii, hairline dividers, fewer boxed cards, and the
   real app screens given room. Ideas borrowed (not copied) from
   Linear (restraint, spacing), Vercel (clear sections, whitespace)
   and Raycast (real product imagery shown properly).
   ============================================================= */

/* section headings: tighter and quieter */
h1, h2 { letter-spacing: -0.025em; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; }

/* ---------- Home: hero with real app screens ---------- */
.hero-inner { grid-template-columns: 1.05fr 0.95fr; }
.hero-project { margin: 1.4rem 0 0; font-size: 0.95rem; color: var(--text-muted); }
.hero-project a { font-weight: 600; text-underline-offset: 3px; }

.hero-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
/* phones keep their natural proportions: only width is set, height follows */
.phone { width: 46%; height: auto; filter: drop-shadow(0 18px 30px rgba(14, 39, 66, 0.22)); }
.phone-ways { position: relative; z-index: 1; }
.phone-eats { margin: 2.2rem 0 0 4%; }   /* side by side, no overlap, so no interface detail is hidden */

/* one gentle entrance, switched off by the reduced-motion rule at the bottom */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.phone-ways { animation: rise 0.6s ease both; }
.phone-eats { animation: rise 0.6s 0.12s ease both; }

/* ---------- Home: What We Do as plain columns ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.feature { padding-top: 1.4rem; border-top: 1px solid var(--sky-200); }
.feature .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--sky-50);
  color: var(--blue-700);
  margin-bottom: 1rem;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature p { color: var(--text-muted); margin-bottom: 0; }

/* ---------- Home: featured project with the home screen ---------- */
.featured { grid-template-columns: 1.1fr 0.9fr; overflow: hidden; }
.featured-visual { margin: 0; display: flex; justify-content: center; }
.featured-visual img { width: min(260px, 100%); height: auto; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35)); }
.featured .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.featured .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Products: app screen at the top of each component card ---------- */
.app-shot {
  margin: -1.7rem -1.7rem 1.4rem;
  padding: 1.4rem 1rem 0;
  height: 380px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  background: var(--sky-50);
  border-bottom: 1px solid var(--sky-100);
  border-radius: var(--radius) var(--radius) 0 0;
}
.app-shot img { width: auto; height: 100%; max-width: none; filter: drop-shadow(0 10px 18px rgba(14, 39, 66, 0.2)); }
.component { overflow: hidden; }

/* ---------- Showcase: app interfaces ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.showcase-row.reverse { grid-template-columns: 7fr 5fr; }
.showcase-copy p { color: var(--text-muted); font-size: 1.08rem; max-width: 44ch; }
.stage {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  border-radius: var(--radius);
}
.stage img { width: 100%; height: auto; margin-inline: auto; }
.stage video { width: 100%; display: block; border-radius: var(--radius-sm); background: var(--navy); }
.stage figcaption { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--sky-200); color: var(--text-muted); font-size: 0.95rem; }
.stage figcaption strong { display: block; color: var(--navy); font-size: 1rem; margin-bottom: 0.2rem; }
.phone-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.ways-row { grid-template-columns: 4fr 8fr; align-items: start; }
.stage.single { max-width: 440px; margin-inline: auto; width: 100%; }
.stage.single img { width: min(300px, 100%); filter: drop-shadow(0 12px 22px rgba(14, 39, 66, 0.2)); }
.phone-pair .stage img { width: min(300px, 100%); filter: drop-shadow(0 12px 22px rgba(14, 39, 66, 0.2)); }

/* ---------- Team: GitHub reveal on the photo ---------- */
/* Only used on a photo that has class "has-gh" (see the note in team.html) */
.avatar.has-gh img.portrait { transition: transform 0.35s ease; }
.avatar.has-gh { transition: box-shadow 0.25s ease; }
.avatar.has-gh:hover, .avatar.has-gh:focus-within {
  box-shadow: 0 0 0 3px rgba(25, 194, 222, 0.55), 0 6px 16px rgba(14, 39, 66, 0.18);
}
.avatar.has-gh:hover img.portrait, .avatar.has-gh:focus-within img.portrait { transform: scale(1.05); }
.gh-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  background: rgba(14, 39, 66, 0.84);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gh-overlay svg { width: 24px; height: 24px; }
.gh-overlay:hover { color: var(--white); }
.avatar.has-gh:hover .gh-overlay, .avatar.has-gh:focus-within .gh-overlay { opacity: 1; }
.gh-overlay:focus-visible { outline: 3px solid #8fe6f4; outline-offset: -6px; border-radius: 50%; }
/* touch screens cannot hover: show a small tappable strip at the bottom of the photo instead */
@media (hover: none) {
  .gh-overlay { inset: auto 0 0 0; height: 32%; flex-direction: row; gap: 0.3rem; padding: 0; opacity: 1; font-size: 0.7rem; }
  .gh-overlay svg { width: 14px; height: 14px; }
}

/* ---------- Responsive additions ---------- */
@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin-inline: auto; }
  .featured { grid-template-columns: 1fr; }
  .showcase-row, .showcase-row.reverse, .ways-row { grid-template-columns: 1fr; }
  .showcase-row.reverse .stage { order: 2; }
}
@media (max-width: 560px) {
  .phone-pair { grid-template-columns: 1fr; }
  .app-shot { height: 320px; }
}
/* Thabang and Jimmy (added later, same method as the rest) */
.portrait-thabang { --w: 110.0%; --l: 0.0%; --t: 0.0%; }
.portrait-jimmy { --w: 100.0%; --l: 0.0%; --t: -5.4%; }


/* ---------- Team: "View GitHub Profile" button ---------- */
.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--blue-600);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--blue-700);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.gh-btn svg { width: 15px; height: 15px; flex: none; }
.gh-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
