/* =============================================================
   Mohan George · Portfolio — bold / modern / vertical
   Original design. Neutral-light canvas, one cobalt accent.
   Top navbar, oversized display type, portfolio grid.
   ============================================================= */

:root {
  --mg-bg:      #f7f7f4;   /* warm off-white canvas   */
  --mg-surface: #ffffff;   /* cards / panels          */
  --mg-ink:     #0e0e10;   /* near-black text         */
  --mg-muted:   #6a6a72;   /* secondary text          */
  --mg-line:    #e5e5e0;   /* hairlines               */
  --mg-accent:  #f59e0b;   /* bold amber accent (default) */
  --mg-accent-2:#c87f08;   /* accent hover            */
  --mg-accent-3:#8F8F8F;   /* bold gray accent */

  --mg-display: "Anton", "Archivo Black", system-ui, sans-serif;
  --mg-head:    "Archivo", "Roboto", system-ui, sans-serif;
  --mg-body:    "Roboto", system-ui, sans-serif;

  --mg-maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--mg-body);
  color: var(--mg-ink);
  background: var(--mg-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.mg-container {
  max-width: var(--mg-maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* section rhythm */
.mg-section { padding: 120px 0; }
.mg-section--tight { padding: 90px 0; }

/* eyebrow label */
.mg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mg-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mg-accent);
  margin: 0 0 22px;
}
.mg-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--mg-accent);
}

/* section heading */
.mg-h2 {
  font-family: var(--mg-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: var(--mg-ink);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.mg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--mg-bg), transparent 8%);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.mg-nav.scrolled {
  border-bottom-color: var(--mg-line);
  background: color-mix(in srgb, var(--mg-bg), transparent 2%);
}
.mg-nav__inner {
  max-width: var(--mg-maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mg-logo {
  font-family: var(--mg-display);
  font-size: 32px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mg-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.mg-logo .first { color: var(--mg-ink); }
.mg-logo .last  { color: var(--mg-accent); }
.mg-logo .dot   { color: var(--mg-accent); }

.mg-navlinks {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0; padding: 0;
}
.mg-navlinks a {
  font-family: var(--mg-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mg-ink);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.mg-navlinks a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--mg-accent);
  transition: width .25s ease;
}
.mg-navlinks a:hover,
.mg-navlinks a.active { color: var(--mg-accent); }
.mg-navlinks a:hover::after,
.mg-navlinks a.active::after { width: 100%; }

.mg-nav__cta {
  font-family: var(--mg-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 22px;
  background: var(--mg-ink);
  color: #fff;
  border-radius: 100px;
  transition: background .25s, transform .25s;
}
.mg-nav__cta:hover { background: var(--mg-accent); transform: translateY(-1px); }

.mg-burger { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.mg-hero {
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}
.mg-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 36px;
  align-items: center;
}
.mg-hero__role {
  font-family: var(--mg-head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mg-accent);
  margin: 0 0 22px;
}
.mg-hero__title {
  font-family: var(--mg-display);
  font-weight: 400;
  font-size: clamp(52px, 8.5vw, 122px);
  line-height: 0.95;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 0 0 30px;
  color: var(--mg-ink);
}
.mg-hero__title .accent { color: var(--mg-accent); }
.mg-hero__lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--mg-muted);
  max-width: 620px;
  margin: 0 0 40px;
}
.mg-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
/* round LinkedIn icon button beside the CTAs */
.mg-btn--icon {
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--mg-ink);
  color: var(--mg-ink);
  background: transparent;
  font-size: 22px;
  transition: all .25s;
}
.mg-btn--icon:hover {
  background: var(--mg-accent);
  border-color: var(--mg-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* hero portrait */
.mg-hero__photo {
  position: relative;
}
.mg-hero__photo {
  align-self: stretch;
}
.mg-hero__photo .frame {
  position: relative;
  overflow: visible;
  background: transparent;           /* no black background */
  display: flex;
  /* align-items: flex-end; */
  justify-content: center;
  height: 100%;
  min-height: 640px;                 /* taller so it matches the copy height */
}
.mg-hero__photo .frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 720px;                 /* much larger hero cutout */
  object-fit: cover;
  object-position: bottom center;
  filter: drop-shadow(0 24px 40px rgba(14,14,16,0.16));
}
.mg-hero__photo .accent-block {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 92%;
  height: 82%;
  background: color-mix(in srgb, var(--mg-accent), transparent 88%);
  border-radius: 240px 240px 18px 18px;
  z-index: -1;
}

/* buttons */
.mg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mg-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 100px;
  border: 2px solid var(--mg-ink);
  transition: all .25s;
  cursor: pointer;
}
.mg-btn--solid { background: var(--mg-ink); color: #fff; }
.mg-btn--solid:hover { background: var(--mg-accent); border-color: var(--mg-accent); transform: translateY(-2px); }
.mg-btn--ghost { background: transparent; color: var(--mg-ink); }
.mg-btn--ghost:hover { background: var(--mg-ink); color: #fff; transform: translateY(-2px); }

/* =========================================================
   STATS BAR
   ========================================================= */
.mg-stats {
  border-top: 1px solid var(--mg-line);
  border-bottom: 1px solid var(--mg-line);
}
.mg-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.mg-stat {
  padding: 54px 32px;
  text-align: center;
  border-left: 1px solid var(--mg-line);
}
.mg-stat:first-child { border-left: 0; }
.mg-stat__num {
  font-family: var(--mg-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1;
  color: var(--mg-ink);
  letter-spacing: -1px;
}
.mg-stat__num .plus { color: var(--mg-accent); margin-left: 5px; }
.mg-stat__label {
  font-family: var(--mg-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mg-muted);
  margin-top: 12px;
}

/* =========================================================
   ABOUT
   ========================================================= */
.mg-about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.mg-about__photo .frame {
  border-radius: 8px;
  /* overflow: hidden; */
  aspect-ratio: 4/5;
  position: relative;
}
.mg-about__photo .frame img { width: 100%; height: 100%; object-fit: cover;  border-radius:10px; }
.mg-about__badge {
  position: absolute;
  right:-25px; bottom: 16px;
  background: var(--mg-accent);
  color: #fff;
  padding: 20px 26px;
  border-radius: 8px 8px 8px 8px;
}
.mg-about__badge .n {
  font-family: var(--mg-display);
  font-size: 40px; line-height: 1;
}
.mg-about__badge .t {
  font-family: var(--mg-head);
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
}
.mg-about__body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--mg-muted);
  margin: 0 0 22px;
}
.mg-about__body p strong { color: var(--mg-ink); font-weight: 600; }

.mg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.mg-tag {
  font-family: var(--mg-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border: 1px solid var(--mg-line);
  border-radius: 100px;
  background: var(--mg-surface);
  color: var(--mg-ink);
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.mg-portfolio { background: var(--mg-bg); }

.mg-port__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}
.mg-port__intro { max-width: 560px; }
.mg-port__intro p { color: var(--mg-muted); font-size: 16px; margin: 8px 0 0; }

.mg-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0; padding: 0;
}
.mg-filters li {
  font-family: var(--mg-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 100px;
  color: var(--mg-muted);
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
}
.mg-filters li:hover { color: var(--mg-ink); }
.mg-filters li.active {
  color: #fff;
  background: var(--mg-accent);
  border-color: var(--mg-accent);
}

.mg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.mg-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mg-surface);
  border: 1px solid var(--mg-line);
  box-shadow: 0 6px 20px rgba(14,14,16,0.06);
  aspect-ratio: 16/11;
  transition: box-shadow .35s, transform .35s, border-color .35s;
}
.mg-card:hover {
  box-shadow: 0 20px 44px rgba(14,14,16,0.16);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--mg-accent), transparent 60%);
}
.mg-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .4s;
}
.mg-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(180deg, rgba(14,14,16,0) 30%, rgba(14,14,16,0.9) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s, transform .4s;
}
.mg-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mg-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mg-head);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 100px;
  transition: all .2s;
}
.mg-card__btn--preview {
  background: #fff;
  color: var(--mg-ink);
}
.mg-card__btn--preview:hover { background: var(--mg-accent); color: #fff; }
.mg-card__btn--case {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
}
.mg-card__btn--case:hover { background: #fff; color: var(--mg-ink); border-color: #fff; }
.mg-card:hover img { transform: scale(1.06); }
.mg-card:hover .mg-card__overlay { opacity: 1; transform: translateY(0); }
.mg-card__cat {
  font-family: var(--mg-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mg-accent);
  margin-bottom: 8px;
}
.mg-card__title {
  font-family: var(--mg-head);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
}
.mg-card__title .light { font-weight: 700; color: #fff; }
.mg-card__arrow {
  position: absolute;
  top: 26px; right: 26px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--mg-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  opacity: 0;
  transform: scale(.7) rotate(-45deg);
  transition: all .35s;
}
.mg-card:hover .mg-card__arrow { opacity: 1; transform: scale(1) rotate(0); }

.mg-card.is-hidden { display: none; }

/* =========================================================
   CONTACT
   ========================================================= */
.mg-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.mg-contact__lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--mg-muted);
  margin: 0 0 36px;
  max-width: 480px;
}
.mg-contact__list { display: grid; gap: 4px; }
.mg-contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--mg-line);
}
.mg-contact__item i {
  font-size: 30px;
  color: var(--mg-accent);
  width: 40px;
  text-align: center;
}
.mg-contact__item span { font-size: 16px; color: var(--mg-ink); }

/* form */
.mg-form { display: grid; gap: 18px; }
.mg-form label {
  font-family: var(--mg-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mg-ink);
  margin-bottom: 6px;
  display: block;
}
.mg-form input,
.mg-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mg-line);
  border-radius: 8px;
  background: var(--mg-surface);
  font-family: var(--mg-body);
  font-size: 15px;
  color: var(--mg-ink);
  transition: border-color .2s, box-shadow .2s;
}
.mg-form input:focus,
.mg-form textarea:focus {
  outline: none;
  border-color: var(--mg-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mg-accent), transparent 86%);
}
.mg-form textarea { min-height: 140px; resize: vertical; }
.mg-form .loading,
.mg-form .error-message,
.mg-form .sent-message { display: none; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.mg-form .error-message { background: #df1529; color: #fff; }
.mg-form .sent-message { background: #059652; color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.mg-footer {
  background: var(--mg-ink);
  color: #cfcfd6;
  padding: 60px 0 40px;
}
.mg-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.mg-footer__logo {
  font-family: var(--mg-display);
  font-size: 26px;
  text-transform: uppercase;
  color: #fff;
}
.mg-footer__logo .dot { color: var(--mg-accent); }
.mg-footer__social { display: flex; gap: 12px; }
.mg-footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .25s;
}
.mg-footer__social a:hover { background: var(--mg-accent); }
.mg-footer__copy {
  font-size: 13px;
  color: #86868f;
  letter-spacing: .5px;
  width: 100%;
  text-align: center;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .mg-card img, .mg-card__overlay { transition: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 992px) {
  .mg-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .mg-hero__photo { max-width: 380px; }
  .mg-about__grid { grid-template-columns: 1fr; gap: 40px; }
  .mg-about__photo { max-width: 420px; margin-left: auto; margin-right: auto; }
  .mg-contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .mg-grid { grid-template-columns: 1fr; }
}

/* ---- Tablet portrait (768px–991px): specific tweaks ---- */
@media (min-width: 768px) and (max-width: 991px) {
  /* remove the hero image, give the copy the full width */
  .mg-hero__photo { display: none; }
  .mg-hero__grid { grid-template-columns: 1fr; }

  /* more breathing room around the big hero heading */
  .mg-hero__title { margin: 0 0 44px; line-height: 1.02; }
  .mg-hero__role { margin-bottom: 30px; }

  /* stats side-by-side (3 across) instead of stacked — tablet only */
  .mg-stats__grid { grid-template-columns: repeat(3, 1fr); }
  .mg-stat { border-left: 1px solid var(--mg-line); border-top: 0; padding: 40px 16px; }
  .mg-stat:first-child { border-left: 0; }
  .mg-stat__num { font-size: 44px; }
  .mg-stat__label { font-size: 12px; }

  /* about image centered */
  .mg-about__photo { max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .mg-container, .mg-nav__inner, .mg-nav__inner { padding-left: 20px; padding-right: 20px; }
  .mg-section { padding: 80px 0; }
  .mg-hero { padding: 140px 0 70px; }

  /* remove hero image on mobile too */
  .mg-hero__photo { display: none; }
  .mg-hero__grid { grid-template-columns: 1fr; }

  /* stats stacked one below another (mobile) */

  .mg-stat { border-left: 0; border-top: 1px solid var(--mg-line); }
  .mg-stat:first-child { border-top: 0; }

  /* about image centered on mobile */
  .mg-about__photo { max-width: 100%; margin: 0 auto; }

  /* mobile nav */
  .mg-navlinks, .mg-nav__cta { display: none; }
  .mg-navlinks.open {
    display: flex;
    position: fixed;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--mg-bg);
    border-bottom: 1px solid var(--mg-line);
    padding: 10px 20px 20px;
  }
  .mg-navlinks.open li { width: 100%; }
  .mg-navlinks.open a {
    display: block;
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--mg-line);
    font-size: 16px;
  }
  .mg-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: none; border: 0; cursor: pointer;
  }
  .mg-burger span {
    width: 24px; height: 2px; background: var(--mg-ink);
    transition: transform .3s, opacity .3s;
  }
  .mg-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mg-burger.open span:nth-child(2) { opacity: 0; }
  .mg-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mg-h2, .mg-hero__title { letter-spacing: -0.5px; }
  .mg-port__head { flex-direction: column; align-items: flex-start; }
  .mg-footer__inner { flex-direction: column; text-align: center; }
}

/* Local font fallback (OFL) — renders even if Google Fonts is unreachable */
@font-face {
  font-family: "Anton";
  src: url("../fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo.ttf") format("truetype-variations"),
       url("../fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@media (min-width: 768px) and (max-width: 991px) {
    .mg-stats__grid { grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 624px) {
  .mg-stats__grid { grid-template-columns: 1fr; }
}



/* =========================================================
   13. LIVE THEME-COLOR WIDGET (fixed, far right)
   ========================================================= */
.mg-theme-widget {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
}

.mg-theme-fab {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px 0 0 10px;
  background: var(--mg-accent);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -4px 4px 18px rgba(14,14,16,0.18);
  transition: background .25s;
}
.mg-theme-fab:hover { background: var(--mg-accent-2); }

.mg-theme-panel {
  background: var(--mg-surface);
  border: 1px solid var(--mg-line);
  border-radius: 12px 0 0 12px;
  box-shadow: -10px 10px 40px rgba(14,14,16,0.16);
  padding: 18px 18px 16px;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width .3s ease, opacity .25s ease, padding .3s ease;
  pointer-events: none;
}
.mg-theme-widget.open .mg-theme-panel {
  width: 208px;
  opacity: 1;
  pointer-events: auto;
}

.mg-theme-panel__title {
  font-family: var(--mg-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mg-muted);
  margin-bottom: 14px;
  white-space: nowrap;
}

.mg-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mg-theme-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--sw);
  cursor: pointer;
  position: relative;
  transition: transform .15s;
  padding: 0;
}
.mg-theme-swatch:hover { transform: scale(1.12); }
.mg-theme-swatch.active {
  border-color: var(--mg-ink);
  box-shadow: 0 0 0 2px #fff inset;
}

@media (max-width: 768px) {
  .mg-theme-fab { width: 42px; height: 42px; font-size: 20px; }
  .mg-theme-widget.open .mg-theme-panel { width: 188px; }
}
/* =========================================================
   SKILLS (thin rings, left)  +  TOOLS (percent bars, right)
   Two columns, side by side — matching the reference.
   ========================================================= */
.mg-skills { background: var(--mg-bg); }

.mg-skilltop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 30px;
}


/* the two-column shell */
.mg-skillwrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

/* shared small intro sub-heading */
.mg-sub {
  font-family: var(--mg-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mg-ink);
  margin: 0 0 16px;
}
.mg-skillwrap .intro-copy {
  font-size:17px;
  line-height: 1.85;
  color: var(--mg-muted);
  margin: 0 0 44px;
}

/* ---------- LEFT: circular rings (thin) ---------- */
.mg-rings {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 30px;
}
.mg-ring {
  display: flex;
  align-items: center;
  gap: 20px;
}
/* thin ring: conic fill, masked to a slim band (~6px) */
.mg-ring__circle {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    conic-gradient(var( --mg-accent-3) calc(var(--val,80) * 1%), #cfcfcf 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
}
/* the % number needs to sit ON TOP of the masked ring, so it's a sibling */
.mg-ring__inner {
  position: relative;
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-ring__inner .mg-ring__circle {
  position: absolute;
  inset: 0;
}
.mg-ring__pct {
  position: relative;
  z-index: 1;
  font-family: var( --mg-head);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: var(--mg-accent);
  letter-spacing: -0.5px;
}
.mg-ring__pct .sign { font-size: 20px; vertical-align: 3px; }

.mg-ring__label h3 {
  font-family: var(--mg-head);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--mg-ink);
  margin: 0 0 8px;
}
.mg-ring__label .meta {
  font-size: 13.5px;
  color: var(--mg-muted);
  margin: 0;
}

/* ---- UX Pillars image (right half) ---- */
.mg-pillars { text-align: center; }
.mg-pillars__title {
  font-family: var(--mg-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mg-ink);
  margin: 0 0 18px;
}
.mg-pillars img {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto;
}


/* ---------- RIGHT: tools as percent + horizontal bar ---------- */
.mg-bars { display: flex; flex-direction: column; gap: 30px; }
.mg-bar {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  column-gap: 18px;
  row-gap: 8px;
}
.mg-bar__pct {
  grid-row: 1 / 3;
  font-family: var(--mg-head);
  font-weight: 400;
  font-size: 46px;
  line-height: 0.9;
  color: var(--mg-ink);
  letter-spacing: -1px;
}
.mg-bar__name {
  align-self: end;
  font-family: var(--mg-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--mg-ink);
  margin: 0;
}
.mg-bar__track {
  align-self: start;
  height: 7px;
  background: #d9d9d9;
  border-radius: 2px;
  overflow: hidden;
}
.mg-bar__fill {
  height: 100%;
  width: var(--val, 80%);
  background: #6f6f6f;          /* grey fill like the reference */
  border-radius: 2px;
}

/* ---- TOOLS full width below ---- */
.mg-toolsrow {
  margin-top: 60px;
  padding-top: 8px;
}
.mg-toolsrow .tools-intro { max-width: 900px; margin-bottom: 44px; }

.mg-bars { display: flex; flex-direction: column; gap: 26px; }
.mg-bars--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 70px;
}
.mg-bar {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  column-gap: 20px;
  row-gap: 8px;
}
.mg-bar__pct {
  grid-row: 1 / 3;
  font-family: var(--mg-head);
  font-weight: 400;
  font-size: 48px;
  line-height: 0.9;
  color: var(--mg-ink);
  letter-spacing: -1px;
}
.mg-bar__name {
  align-self: end;
  font-family: var(--mg-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--mg-ink);
  margin: 0;
}
.mg-bar__track {
  align-self: start;
  height: 7px;
  background: #d9d9d9;
  border-radius: 2px;
  overflow: hidden;
}
.mg-bar__fill {
  height: 100%;
  width: var(--val, 80%);
  background: #6f6f6f;
  border-radius: 2px;
}


/* ---------- responsive ---------- */
@media (max-width: 992px) {
  .mg-skillwrap { grid-template-columns: 1fr; gap: 56px; }
   .mg-skilltop { grid-template-columns: 1fr; gap: 50px; }
  .mg-pillars { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .mg-rings { grid-template-columns: 1fr; gap: 26px; }
  .mg-ring__circle, .mg-ring__inner { width: 108px; height: 108px; }
  .mg-ring__pct { font-size: 28px; }
  .mg-bar__pct { font-size: 38px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .mg-rings{    grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 624px) {
  .mg-rings{ grid-template-columns: 1fr;}
  .mg-bars--2col{ grid-template-columns: repeat(1, 1fr);}
  
}
