/* =============================================
   Maha Kepakisan - Personal Portfolio
   kepakisan.co.nz
   ============================================= */

/* CSS Variables */
:root {
  --cream: #FAF7F2;
  --sand: #EDE0CC;
  --sand-d: #D9C8AD;
  --terra: #C4714A;
  --rust: #A8522E;
  --sage: #6B7F5E;
  --sage-l: #D4E0D0;
  --bali: #E8A838;
  --bali-l: #FDF3DC;
  --bark: #3D2E1E;
  --bark-l: #6B5440;
  --sky: #4A7FA5;
  --sky-l: #D8EAF5;
  --violet: #7B5EA7;
  --violet-l: #EDE8F5;
  --white: #fff;
  --sh: rgba(61, 46, 30, .10);
  --sh-lg: rgba(61, 46, 30, .18);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--terra);
  color: #fff;
  padding: .6rem 1.4rem;
  border-radius: 0 0 8px 8px;
  font-size: .85rem;
  font-weight: 700;
  transition: top .2s;
}

.skip-link:focus {
  top: 0;
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1000;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--bark);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--cream);
  color: var(--bark);
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
}

/* Utility Classes */
.lbl {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra);
  display: block;
  margin-bottom: .6rem;
}

.sec-title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  color: var(--bark);
}

/* Under Construction Banner */
.wip-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: linear-gradient(90deg, var(--bali) 0%, var(--terra) 100%);
  color: #fff;
  padding: .6rem 3rem .6rem 1.5rem;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wip-banner.hidden {
  display: none;
}

.wip-close {
  position: absolute;
  right: 1rem;
  background: rgba(255,255,255,.2);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.wip-close:hover {
  background: rgba(255,255,255,.35);
}

body.has-wip-banner nav {
  top: 38px;
}

body.has-wip-banner #hero {
  padding-top: 9.5rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  transition: box-shadow .3s;
}

nav.sc {
  box-shadow: 0 2px 24px var(--sh);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.logo span {
  color: var(--terra);
}

.logo-sub {
  font-size: .7rem;
  color: var(--bark-l);
  letter-spacing: .06em;
  margin-top: -3px;
}

.nl {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nl a {
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--bark-l);
  transition: color .2s;
}

.nl a:hover {
  color: var(--terra);
}

.ncta {
  background: var(--terra);
  color: var(--white) !important;
  padding: .45rem 1.3rem;
  border-radius: 100px;
  transition: background .2s !important;
}

.ncta:hover {
  background: var(--rust) !important;
}


/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1140px;
  width: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, #EDE0CC 0%, transparent 65%);
  opacity: .7;
}

.orb2 {
  width: 450px;
  height: 450px;
  bottom: 0;
  left: -100px;
  background: radial-gradient(circle, #D4E0D0 0%, transparent 65%);
  opacity: .5;
}

.hc {
  position: relative;
  z-index: 1;
}

.hbadge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--sand);
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .77rem;
  font-weight: 600;
  color: var(--bark-l);
  margin-bottom: 1.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--sage);
  opacity: .3;
  animation: ping 1.6s infinite;
}

@keyframes ping {
  0%, 100% {
    transform: scale(1);
    opacity: .3;
  }
  50% {
    transform: scale(1.9);
    opacity: 0;
  }
}

.htitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.9rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 1.3rem;
}

.htitle em {
  font-style: italic;
  color: var(--terra);
}

.horigin {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .84rem;
  color: var(--bark-l);
  margin-bottom: 1.3rem;
}

.hsub {
  font-size: 1rem;
  color: var(--bark-l);
  max-width: 500px;
  margin-bottom: 2.2rem;
}

.hbtns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.bp {
  background: var(--terra);
  color: #fff;
  padding: .85rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .88rem;
  transition: background .2s, transform .15s;
  display: inline-block;
}

.bp:hover {
  background: var(--rust);
  transform: translateY(-2px);
}

.bo {
  border: 2px solid var(--sand-d);
  color: var(--bark);
  padding: .85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: .88rem;
  transition: border-color .2s, transform .15s;
  display: inline-block;
}

.bo:hover {
  border-color: var(--terra);
  transform: translateY(-2px);
}

.hphoto {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hphoto-inner {
  position: relative;
  width: 350px;
  height: 430px;
}

.hframe {
  width: 100%;
  height: 100%;
  border-radius: 200px 200px 160px 160px;
  background: linear-gradient(160deg, var(--sand) 0%, #D4B896 100%);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(196, 113, 74, .28);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.phint {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--bark-l);
}

.phint svg {
  width: 65px;
  height: 65px;
  opacity: .3;
}

.phint p {
  font-size: .76rem;
  opacity: .5;
  text-align: center;
  padding: 0 2rem;
  line-height: 1.5;
}

.fc {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: .8rem 1rem;
  box-shadow: 0 10px 32px var(--sh-lg);
  font-size: .8rem;
  font-weight: 600;
  color: var(--bark);
  z-index: 10;
}

.fc .v {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--terra);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}

.fc1 { bottom: 50px; left: -28px; }
.fc2 { top: 55px; right: -28px; }
.fc3 { top: 50%; right: -36px; transform: translateY(-50%); }

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bark-l);
  opacity: .45;
  animation: bob 2.2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* Sections Base */
section {
  padding: 5.5rem 4rem;
}

.si {
  max-width: 1140px;
  margin: 0 auto;
}


/* About Section */
#about {
  background: var(--white);
}

.ag {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.al {
  position: sticky;
  top: 100px;
}

.aquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.42rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  border-left: 3px solid var(--terra);
  padding-left: 1.3rem;
  margin-bottom: 1.8rem;
}

.al p {
  color: var(--bark-l);
  margin-bottom: .9rem;
  font-size: .94rem;
}

.afacts {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1.6rem;
}

.afact {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .87rem;
  color: var(--bark-l);
}

.afact strong {
  color: var(--bark);
}

.ar p {
  color: var(--bark-l);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* Journey Section */
#journey {
  background: var(--cream);
}

.journey-intro {
  max-width: 580px;
  color: var(--bark-l);
  margin-bottom: 2.5rem;
  font-size: .95rem;
  line-height: 1.7;
}

/* Journey Filters */
.jfilters {
  display: flex;
  gap: .5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.jf {
  padding: .42rem 1rem;
  border-radius: 100px;
  border: 2px solid var(--sand);
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--bark-l);
  transition: all .2s;
  letter-spacing: .04em;
}

.jf.on,
.jf:hover {
  border-color: var(--terra);
  background: var(--terra);
  color: #fff;
}

.jf[data-f="edu"].on,
.jf[data-f="edu"]:hover {
  border-color: var(--sage);
  background: var(--sage);
}

.jf[data-f="spark"].on,
.jf[data-f="spark"]:hover {
  border-color: var(--violet);
  background: var(--violet);
}

/* Timeline */
.jtl {
  position: relative;
  padding-left: 0;
}

.jtl::before {
  display: none;
}

/* Hide dots globally — cards already mark each moment */
.jdot {
  display: none;
}

/* Year Marker */
.yr-marker {
  position: relative;
  margin-bottom: 1.2rem;
  margin-top: 2.8rem;
}

.yr-marker:first-child {
  margin-top: 0;
}

.yr-marker .yr-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--bark-l);
  white-space: nowrap;
  letter-spacing: .06em;
}

.yr-marker .yr-line {
  height: 1px;
  background: linear-gradient(to right, var(--sand), transparent);
  margin-left: .5rem;
}

/* Journey Items */
.ji {
  position: relative;
  margin-bottom: 1.1rem;
  transition: opacity .3s;
}

.ji.hide {
  display: none;
}

.jdot {
  position: absolute;
  left: -3.05rem;
  top: 14px;
  z-index: 2;
}

.jdot-inner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .52rem;
}

/* Career Card */
.ji[data-t="career"] .jdot-inner {
  border-color: var(--terra);
  background: var(--terra);
}

.ji[data-t="career"] .jcard {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--sand);
  padding: 1.5rem 1.8rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.ji[data-t="career"] .jcard:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 30px var(--sh);
  border-color: var(--sand-d);
}

.ji[data-t="career"] .jcard.open {
  border-color: var(--terra);
}

.jcard-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.jcard-head > div:nth-child(2),
.jcard-head > div:first-child:not(.jcard-logo) {
  flex: 1;
}

.jcard-date {
  margin-left: auto;
  flex-shrink: 0;
}

.jcard-type {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .18rem .6rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: .3rem;
}

.ct-career {
  background: rgba(196, 113, 74, .12);
  color: var(--terra);
}

.ct-edu {
  background: rgba(107, 127, 94, .12);
  color: var(--sage);
}

.jcard-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--bark);
}

.jcard-sub {
  font-size: .83rem;
  color: var(--terra);
  font-weight: 600;
  margin-top: 2px;
}

.jcard-date {
  font-size: .75rem;
  color: var(--bark-l);
  white-space: nowrap;
  background: var(--cream);
  padding: .28rem .7rem;
  border-radius: 100px;
  font-weight: 600;
  align-self: flex-start;
}

.jcard-logo {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 12px;
  object-fit: contain;
  background: var(--cream);
  padding: 6px;
  border: 1px solid var(--sand);
  box-shadow: 0 2px 8px var(--sh);
}

.jexpand {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease;
}

.jexpand.open {
  max-height: 2000px;
}

.jexpand-inner {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--sand);
}

.jexpand-inner p {
  font-size: .86rem;
  color: var(--bark-l);
  margin-bottom: .75rem;
}

.jach {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.jach li {
  display: flex;
  gap: .55rem;
  font-size: .84rem;
  color: var(--bark-l);
}

.jach li::before {
  content: '→';
  color: var(--terra);
  font-weight: 700;
  flex-shrink: 0;
}

.jtools {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .9rem;
}

.jtool {
  font-size: .68rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 6px;
  background: var(--cream);
  color: var(--bark-l);
  border: 1px solid var(--sand);
}

/* Tool category colours */
.jtool[data-cat="data"] {
  background: rgba(196, 113, 74, .08);
  border-color: rgba(196, 113, 74, .25);
  color: var(--rust);
}

.jtool[data-cat="cloud"] {
  background: rgba(107, 127, 94, .08);
  border-color: rgba(107, 127, 94, .25);
  color: var(--sage);
}

.jtool[data-cat="dev"] {
  background: rgba(74, 127, 165, .08);
  border-color: rgba(74, 127, 165, .25);
  color: var(--sky);
}

.jtool[data-cat="platform"] {
  background: rgba(232, 168, 56, .08);
  border-color: rgba(232, 168, 56, .25);
  color: #b8860b;
}

.jtool[data-cat="specialty"] {
  background: rgba(123, 94, 167, .08);
  border-color: rgba(123, 94, 167, .25);
  color: var(--violet);
}

/* Career Group Card: multiple roles at one company */
.jcard-group {
  background: var(--cream);
  border-radius: 18px;
  border: 1px solid var(--sand);
  border-left: 3px solid var(--terra);
  overflow: hidden;
  transition: border-color .2s;
}

.jcard-group-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.8rem;
  border-bottom: 1px solid var(--sand);
  background: var(--white);
}

.jcard-group-company {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bark);
}

.jcard-group-tenure {
  font-size: .78rem;
  color: var(--bark-l);
  margin-top: 2px;
}

.jcard-group-roles {
  display: flex;
  flex-direction: column;
}

.jcard-role {
  padding: 1.2rem 1.8rem;
  cursor: pointer;
  transition: background .2s;
  border-bottom: 1px solid var(--sand);
  position: relative;
  background: var(--white);
}

.jcard-role:last-child {
  border-bottom: none;
}

.jcard-role:hover {
  background: var(--white);
  box-shadow: 0 2px 12px var(--sh);
}

.jcard-role.open {
  background: var(--white);
}

.jcard-role-head {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}

.jcard-role-head > div:nth-child(2) {
  flex: 1;
}

.jcard-role-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  background: var(--terra);
  margin-top: 6px;
  opacity: .5;
  transition: opacity .2s;
}

.jcard-role.open .jcard-role-dot,
.jcard-role:hover .jcard-role-dot {
  opacity: 1;
}

/* Hide hint when role card is expanded */
.jcard-role.open .jcred-hint {
  display: none;
}

/* Inline sparks inside career groups: match standalone spark look */
.jcard-role-spark {
  padding: .55rem 1.8rem .55rem 1.8rem;
  border-bottom: 1px solid var(--sand);
  border-left: none;
  margin: 0;
  transition: opacity .3s, max-height .3s;
  overflow: hidden;
  background: var(--cream);
}

.jcard-role-spark:last-child {
  border-bottom: none;
}

.jcard-role-spark .spark-emoji {
  font-size: .8rem;
  display: inline;
  margin-right: .25rem;
  vertical-align: baseline;
}

.jcard-role-spark .spark-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bark-l);
  line-height: 1.45;
  display: block;
  border-left: 2px solid var(--violet);
  padding-left: .9rem;
  margin-left: 0;
  max-width: 520px;
}

.jcard-role-spark .spark-note {
  font-size: .68rem;
  color: var(--bark-l);
  margin-top: .15rem;
  font-style: normal;
  opacity: .5;
  padding-left: calc(.9rem + 2px);
  max-width: 520px;
}

.jcard-role-spark.spark-hidden {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* Education Card */
.ji[data-t="edu"] .jdot-inner {
  border-color: var(--sage);
  background: var(--sage);
}

.ji[data-t="edu"] .jcard {
  background: var(--sage-l);
  border-radius: 16px;
  border: 1px solid rgba(107, 127, 94, .25);
  padding: 1.3rem 1.6rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.ji[data-t="edu"] .jcard:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 24px rgba(107, 127, 94, .15);
}

/* Certification Card */
.ji[data-t="cert"] .jdot-inner {
  border-color: var(--bali);
  background: var(--bali-l);
}

.ji[data-t="cert"] .jcard {
  background: transparent;
  padding: .2rem 0;
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.cbadge {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--white);
  border: 2px solid var(--sand);
  border-radius: 12px;
  padding: .6rem .9rem;
  cursor: pointer;
  transition: all .2s;
  max-width: 240px;
}

.cbadge:hover {
  border-color: var(--bali);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--sh);
}

.cbicon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-align: center;
}

.cbicon-img {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 9px;
  object-fit: contain;
}

.ms-icon {
  background: linear-gradient(135deg, #0078D4, #00BCF2);
  color: #fff;
}

.cpa-icon {
  background: linear-gradient(135deg, #1a3a5c, #2c5f8a);
  color: #fff;
  font-size: .55rem;
}

.ag-icon {
  background: linear-gradient(135deg, #5B4FCF, #8B7EE8);
  color: #fff;
}

.ws-icon {
  background: linear-gradient(135deg, #2D6A4F, #40916C);
  color: #fff;
}

.cbname {
  font-size: .76rem;
  font-weight: 700;
  color: var(--bark);
  line-height: 1.3;
}

.cbcode {
  font-size: .65rem;
  color: var(--bali);
  font-weight: 700;
  letter-spacing: .04em;
  margin-top: 1px;
}

.cert-group-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bali);
  margin-bottom: .6rem;
  display: block;
}

/* Personal Spark: inline aside (no card) */
.ji[data-t="spark"] {
  margin-bottom: .6rem;
  transition: opacity .3s, max-height .3s, margin .3s;
  max-height: 200px;
  overflow: hidden;
}

.ji[data-t="spark"].spark-hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
}

.ji[data-t="spark"] .jdot-inner {
  border-color: var(--violet);
  background: transparent;
  width: 10px;
  height: 10px;
  min-width: 10px;
  font-size: 0;
  border-width: 2px;
}

.ji[data-t="spark"] .jdot {
  top: 4px;
  left: -2.6rem;
}

.ji[data-t="spark"] .jcard {
  background: transparent;
  border: none;
  border-left: 2px solid var(--violet);
  border-radius: 0;
  padding: .15rem 0 .15rem .9rem;
  max-width: 520px;
}

.ji[data-t="spark"] .jcard::before {
  display: none;
}

.spark-emoji {
  font-size: .8rem;
  display: inline;
  margin-right: .25rem;
  vertical-align: baseline;
}

.spark-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bark-l);
  line-height: 1.45;
  display: inline;
}

.spark-note {
  font-size: .68rem;
  color: var(--bark-l);
  margin-top: .15rem;
  font-style: normal;
  opacity: .5;
}

/* Credential hint pill: visible when card is collapsed */
.jcred-hint {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .6rem;
  padding: .3rem .75rem;
  background: rgba(107, 127, 94, .1);
  border: 1px solid rgba(107, 127, 94, .2);
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: var(--sage);
  transition: all .25s;
  cursor: pointer;
}

.jcred-hint:hover {
  background: rgba(107, 127, 94, .18);
  border-color: rgba(107, 127, 94, .35);
}

.jcred-hint .hint-icon {
  font-size: .75rem;
}

.jcred-hint .hint-expand {
  opacity: .55;
  font-size: .65rem;
  font-weight: 500;
}

/* Hide hint when card is expanded */
.jcard.open .jcred-hint {
  display: none;
}

/* Nested credentials section */
.jcreds {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(139, 126, 102, .15);
  padding-top: 1rem;
  transition: all .3s;
}

.jcreds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: .4rem 0;
  font-family: 'Nunito', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sage);
  border-left: 3px solid var(--sage);
  padding-left: .8rem;
  margin-bottom: .8rem;
  transition: all .2s;
}

.jcreds-header:hover {
  color: var(--bark);
  border-left-color: var(--bark);
}

.jcreds-arrow {
  font-size: .7rem;
  transition: transform .2s;
}

.jcreds:not(.open) .jcreds-arrow {
  transform: rotate(-90deg);
}

.jcreds-body {
  transition: all .3s;
  overflow: hidden;
}

.jcreds:not(.open) .jcreds-body {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.jcreds.open .jcreds-body {
  max-height: 1000px;
  opacity: 1;
}

/* Education entries within credentials */
.jcred-edu {
  margin-bottom: 1rem;
}

.jcred-edu-title {
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: var(--bark);
  margin-bottom: .2rem;
}

.jcred-edu-sub {
  font-size: .75rem;
  color: var(--sage);
  margin-bottom: .4rem;
}

.jcred-edu-desc {
  font-size: .8rem;
  color: var(--bark-l);
  line-height: 1.4;
  margin-bottom: .6rem;
}

/* Cert group labels within credentials */
.jcreds .cert-group-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: .6rem;
  display: block;
}

/* Cert rows within credentials */
.jcreds .cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.jcreds .cbadge {
  flex: 0 0 auto;
  min-width: 0;
}

/* Spark toggle button */
.spark-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  border: 1.5px solid rgba(123, 94, 167, .25);
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--violet);
  transition: all .2s;
  margin-left: .5rem;
  vertical-align: middle;
}

.spark-toggle:hover {
  border-color: var(--violet);
  background: var(--violet-l);
}

.spark-toggle.off {
  opacity: .5;
}

.spark-toggle .toggle-icon {
  transition: transform .2s;
  font-size: .6rem;
}

/* Sort toggle button */
.jsort-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .8rem;
  border-radius: 100px;
  border: 1.5px solid rgba(180, 140, 100, .3);
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--terra);
  transition: all .2s;
  margin-left: .25rem;
  vertical-align: middle;
}

.jsort-toggle:hover {
  border-color: var(--terra);
  background: rgba(180, 140, 100, .08);
}

.jsort-toggle .sort-icon {
  font-size: .8rem;
  transition: transform .2s;
}

/* Journey Stats */
.journey-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--sand);
  border-radius: 20px;
  margin-bottom: 3rem;
}

.jstat {
  background: var(--white);
  padding: 1.4rem;
  text-align: center;
}

.jstat:first-child {
  border-radius: 20px 0 0 20px;
}

.jstat:last-child {
  border-radius: 0 20px 20px 0;
}

.jstat .jstat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--terra);
  display: block;
  line-height: 1;
}

.jstat .jstat-lbl {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bark-l);
  margin-top: .3rem;
  display: block;
}

/* Clickable stat cards */
.jstat-click {
  cursor: pointer;
  position: relative;
  transition: background .25s ease, box-shadow .25s ease;
}

.jstat-click:hover {
  background: var(--cream);
  box-shadow: inset 0 -3px 0 var(--terra);
}

.jstat-click:hover .jstat-val {
  transform: scale(1.05);
  transition: transform .2s ease;
}

.jstat-click:hover .jstat-hint {
  opacity: 1;
  color: var(--terra);
}

.jstat-hint {
  opacity: 0;
  font-size: .6rem;
  transition: opacity .25s ease;
  display: inline-block;
  margin-left: .15rem;
}

.jstat-click.open .jstat-hint {
  opacity: 1;
  color: var(--terra);
  transform: rotate(180deg);
  display: inline-block;
}

/* Stat dropdown list */
.jstat-list {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 0;
  min-width: 220px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 12px 32px var(--sh-lg);
  z-index: 100;
  transition: max-height .35s cubic-bezier(.4,0,.2,1),
              opacity .25s ease,
              padding .3s ease;
}

.jstat-click.open .jstat-list {
  max-height: 420px;
  opacity: 1;
  pointer-events: auto;
  padding: .8rem 0;
  overflow-y: auto;
}

.jstat-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jstat-list li {
  padding: .4rem 1.2rem;
  font-size: .78rem;
  color: var(--bark);
  text-align: left;
  letter-spacing: .01em;
  text-transform: none;
  font-weight: 500;
  transition: background .15s ease;
  white-space: nowrap;
}

.jstat-list li:hover {
  background: var(--cream);
}

.jstat-list li.jstat-hi {
  color: var(--terra);
  font-weight: 700;
}

.jstat-list .jstat-divider {
  padding: .2rem 1.2rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bark-l);
  opacity: .5;
  border-top: 1px solid var(--sand);
  margin-top: .3rem;
  pointer-events: none;
}

.jstat-list .jstat-divider:first-child {
  border-top: none;
  margin-top: 0;
}

@media (max-width: 600px) {
  .jstat-list {
    min-width: 180px;
    left: 0;
    transform: translateX(0) translateY(8px);
  }
}


/* Skills Section */
#skills {
  background: var(--white);
}

.stabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.stab {
  padding: .42rem 1.1rem;
  border-radius: 100px;
  border: 2px solid var(--sand);
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--bark-l);
  transition: all .2s;
}

/* Non-active tab category tints */
.stab[data-cat="data"] {
  border-color: rgba(196, 113, 74, .3);
  color: var(--rust);
}

.stab[data-cat="cloud"] {
  border-color: rgba(107, 127, 94, .3);
  color: var(--sage);
}

.stab[data-cat="dev"] {
  border-color: rgba(74, 127, 165, .3);
  color: var(--sky);
}

.stab[data-cat="platform"] {
  border-color: rgba(232, 168, 56, .3);
  color: #b8860b;
}

.stab[data-cat="specialty"] {
  border-color: rgba(123, 94, 167, .3);
  color: var(--violet);
}

/* Active/hover tab fills */
.stab.on,
.stab:hover {
  color: #fff;
}

/* Tab category colours */
.stab[data-cat="data"].on,
.stab[data-cat="data"]:hover {
  border-color: var(--terra);
  background: var(--terra);
}

.stab[data-cat="cloud"].on,
.stab[data-cat="cloud"]:hover {
  border-color: var(--sage);
  background: var(--sage);
}

.stab[data-cat="dev"].on,
.stab[data-cat="dev"]:hover {
  border-color: var(--sky);
  background: var(--sky);
}

.stab[data-cat="platform"].on,
.stab[data-cat="platform"]:hover {
  border-color: #b8860b;
  background: #b8860b;
}

.stab[data-cat="specialty"].on,
.stab[data-cat="specialty"]:hover {
  border-color: var(--violet);
  background: var(--violet);
}

.spanel {
  display: none;
}

.spanel.on {
  display: block;
}

.scloud {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.spill {
  padding: .45rem .95rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--cream);
  border: 1.5px solid var(--sand);
  color: var(--bark);
  transition: all .15s;
  cursor: default;
}

.spill:hover {
  border-color: var(--terra);
  color: var(--terra);
}

/* Skill pill category colours (non-highlighted) */
.spill[data-cat="data"] {
  background: rgba(196, 113, 74, .06);
  border-color: rgba(196, 113, 74, .2);
  color: var(--rust);
}

.spill[data-cat="cloud"] {
  background: rgba(107, 127, 94, .06);
  border-color: rgba(107, 127, 94, .2);
  color: var(--sage);
}

.spill[data-cat="dev"] {
  background: rgba(74, 127, 165, .06);
  border-color: rgba(74, 127, 165, .2);
  color: var(--sky);
}

.spill[data-cat="platform"] {
  background: rgba(232, 168, 56, .06);
  border-color: rgba(232, 168, 56, .2);
  color: #b8860b;
}

.spill[data-cat="specialty"] {
  background: rgba(123, 94, 167, .06);
  border-color: rgba(123, 94, 167, .2);
  color: var(--violet);
}

/* Highlighted skill pills per category */
.spill.hi[data-cat="data"] {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}

.spill.hi[data-cat="cloud"] {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.spill.hi[data-cat="dev"] {
  background: var(--sky);
  color: #fff;
  border-color: var(--sky);
}

.spill.hi[data-cat="platform"] {
  background: #b8860b;
  color: #fff;
  border-color: #b8860b;
}

.spill.hi[data-cat="specialty"] {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

/* Blog Section */
#blog {
  background: var(--cream);
}

.bgrid {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--terra) transparent;
  padding-bottom: .5rem;
}

.bgrid::-webkit-scrollbar { height: 6px; }
.bgrid::-webkit-scrollbar-track { background: transparent; }
.bgrid::-webkit-scrollbar-thumb { background: var(--terra); border-radius: 3px; }

.bcard {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 300px;
  max-width: 340px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.bcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px var(--sh);
}

.bimg {
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
}

.bcat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .27rem .75rem;
  border-radius: 100px;
}

.c-tech {
  background: var(--bark);
  color: var(--cream);
}

.c-pers {
  background: var(--terra);
  color: #fff;
}

.c-data {
  background: var(--sage);
  color: #fff;
}

.bbody {
  padding: 1.4rem;
}

.bbody h3 {
  font-size: 1.08rem;
  margin-bottom: .45rem;
}

.bbody p {
  font-size: .83rem;
  color: var(--bark-l);
  margin-bottom: .7rem;
}

.bmeta {
  font-size: .72rem;
  color: var(--bark-l);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.rm {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--terra);
  margin-top: .5rem;
  transition: gap .2s;
}

.rm:hover {
  gap: .6rem;
}

/* Coming soon blog card */
.bcard-soon {
  opacity: .6;
  cursor: default;
  pointer-events: none;
}

.soon-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: var(--terra);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 100px;
}

/* Videos Section */
#videos {
  background: var(--bark);
}

#videos .lbl {
  color: var(--terra);
}

#videos .sec-title {
  color: var(--cream);
}

.vgrid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.vembed {
  border-radius: 20px;
  overflow: hidden;
  background: #111;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.vembed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.vph {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(61, 46, 30, .85);
}

.playbtn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
  cursor: pointer;
}

.playbtn:hover {
  transform: scale(1.12);
}

.playbtn svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 4px;
}

.vinfo {
  margin-top: 1.1rem;
}

.vinfo h3 {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: .3rem;
}

.vinfo p {
  font-size: .84rem;
  color: rgba(250, 247, 242, .6);
}

.vlist {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: 420px;
  overflow-y: auto;
  padding-right: .3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 247, 242, .15) transparent;
}

.vlist::-webkit-scrollbar {
  width: 4px;
}

.vlist::-webkit-scrollbar-track {
  background: transparent;
}

.vlist::-webkit-scrollbar-thumb {
  background: rgba(250, 247, 242, .15);
  border-radius: 4px;
}

/* Coming soon video */
.vth.coming-soon {
  opacity: .55;
}

/* Active coming-soon video should still look selected */
.vth.coming-soon.on {
  opacity: .8;
}

.vth.coming-soon .vtimg {
  position: relative;
}

.vth.coming-soon .vtimg::after {
  content: 'SOON';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .1rem .45rem;
  border-radius: 100px;
  background: rgba(0, 0, 0, .5);
  color: rgba(250, 247, 242, .7);
}

.vth {
  display: flex;
  gap: .9rem;
  padding: .8rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s;
  align-items: center;
}

.vth:hover,
.vth.on {
  background: rgba(250, 247, 242, .07);
}

.vth.on {
  background: rgba(196, 113, 74, .15);
}

.vtimg {
  width: 85px;
  min-width: 85px;
  height: 54px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.vth h4 {
  font-size: .83rem;
  color: var(--cream);
  font-family: 'Nunito', sans-serif;
  margin-bottom: 2px;
}

.vth span {
  font-size: .72rem;
  color: rgba(250, 247, 242, .45);
}


/* Consulting Section */
#consulting {
  background: var(--white);
}

.cbanner {
  background: linear-gradient(130deg, var(--terra) 0%, var(--rust) 100%);
  border-radius: 26px;
  padding: 3.5rem 4rem;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.8rem;
  position: relative;
  overflow: hidden;
}

.cbanner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.cbanner h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  color: #fff;
  margin-bottom: .8rem;
}

.cbanner p {
  opacity: .85;
  margin-bottom: 1.4rem;
  font-size: .93rem;
}

.bwh {
  background: #fff;
  color: var(--terra);
  padding: .85rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: .88rem;
  display: inline-block;
  transition: transform .2s;
}

.bwh:hover {
  transform: translateY(-2px);
}

.clist {
  list-style: none;
}

.clist li {
  display: flex;
  gap: .85rem;
  padding: .8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: .9rem;
  align-items: flex-start;
}

.clist li:last-child {
  border: none;
}

.chk {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  margin-top: 3px;
}

.sgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.scard {
  background: var(--cream);
  border-radius: 18px;
  padding: 1.8rem;
  border: 1px solid var(--sand);
  transition: border-color .2s, transform .2s;
}

.scard:hover {
  border-color: var(--terra);
  transform: translateY(-3px);
}

.sico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.scard h3 {
  font-size: .98rem;
  margin-bottom: .45rem;
}

.scard p {
  font-size: .83rem;
  color: var(--bark-l);
}

/* Contact Section */
#contact {
  background: var(--cream);
}

.cgrid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.cl p {
  color: var(--bark-l);
  margin-bottom: 1.8rem;
  font-size: .98rem;
}

.chs {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.ch {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1.05rem;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--sand);
  font-size: .86rem;
  font-weight: 600;
  transition: border-color .2s;
}

.ch:hover {
  border-color: var(--terra);
}

.chico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
}

.cform {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.fg label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--bark-l);
}

.fg input,
.fg textarea,
.fg select {
  background: var(--white);
  border: 2px solid var(--sand);
  border-radius: 11px;
  padding: .82rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  color: var(--bark);
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  border-color: var(--terra);
}

.fg textarea {
  resize: vertical;
  min-height: 115px;
}

.sbtn {
  background: var(--terra);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: .9rem 2.2rem;
  border-radius: 100px;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  transition: background .2s, transform .2s;
  align-self: flex-start;
}

.sbtn:hover {
  background: var(--rust);
  transform: translateY(-1px);
}


/* Footer */
footer {
  background: var(--bark);
  color: var(--cream);
  padding: 2.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flogo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
}

.flogo span {
  color: var(--terra);
}

.fdomain,
.fcopy {
  font-size: .72rem;
  opacity: .4;
  margin-top: 2px;
}

.fsocials {
  display: flex;
  gap: .7rem;
}

.flink {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(250, 247, 242, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: background .2s;
}

.flink:hover {
  background: var(--terra);
}

/* Modal */
.moverlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(61, 46, 30, .55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
  padding: 2rem;
}

.moverlay.open {
  opacity: 1;
  pointer-events: all;
}

.mbox {
  background: var(--white);
  border-radius: 22px;
  padding: 2.2rem;
  max-width: 460px;
  width: 100%;
  transform: translateY(18px);
  transition: transform .25s;
  position: relative;
}

.moverlay.open .mbox {
  transform: translateY(0);
}

.mclose {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bark);
}

.mico-lg {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
}

.mico-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.mcat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: .35rem;
}

.mtitle {
  font-size: 1.35rem;
  margin-bottom: .25rem;
}

.mcode {
  font-size: .83rem;
  color: var(--bark-l);
  margin-bottom: 1.1rem;
}

.mdesc {
  font-size: .88rem;
  color: var(--bark-l);
  line-height: 1.65;
}

.missuer {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--sand);
  font-size: .8rem;
  color: var(--bark-l);
  font-weight: 600;
}

/* Document Chooser Modal */
.doc-modal {
  background: var(--white);
  border-radius: 22px;
  padding: 2.2rem;
  max-width: 480px;
  width: 100%;
  transform: translateY(18px);
  transition: transform .25s;
  position: relative;
}

.moverlay.open .doc-modal {
  transform: translateY(0);
}

.doc-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

.doc-modal-sub {
  font-size: .84rem;
  color: var(--bark-l);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.doc-options {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.doc-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--cream);
  border: 2px solid var(--sand);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}

.doc-option:hover {
  border-color: var(--terra);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--sh);
}

.doc-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.doc-option-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--bark);
  margin-bottom: 2px;
}

.doc-option-desc {
  font-size: .78rem;
  color: var(--bark-l);
  line-height: 1.45;
}

.doc-arrow {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--terra);
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .2s;
}

.doc-option:hover .doc-arrow {
  transform: translateX(3px);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ha {
  animation: fadeUp .7s ease both;
}

.ha:nth-child(1) { animation-delay: .1s; }
.ha:nth-child(2) { animation-delay: .25s; }
.ha:nth-child(3) { animation-delay: .38s; }
.ha:nth-child(4) { animation-delay: .5s; }

/* Responsive */
@media (max-width: 900px) {
  nav {
    padding: 1rem 1.5rem;
  }
  
  .hamburger {
    display: flex;
  }

  .nl {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    z-index: 999;
    padding: 2rem;
  }

  /* Remove backdrop-filter when menu is open so .nl position:fixed works relative to viewport */
  nav:has(.nl.open) {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nl.open {
    display: flex;
  }

  .nl li {
    text-align: center;
  }

  .nl a {
    font-size: 1.2rem;
    color: var(--bark);
  }

  .nl .ncta {
    margin-top: .8rem;
    font-size: 1rem;
    padding: .7rem 2.2rem;
  }
  
  section {
    padding: 3.5rem 1.5rem;
  }
  
  #hero {
    padding: 6.5rem 1.5rem 3.5rem;
    min-height: auto;
  }
  
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hphoto {
    order: -1;
    margin-bottom: 1.5rem;
  }
  
  .hphoto-inner {
    width: 180px;
    height: 220px;
    margin: 0 auto;
  }
  
  .fc {
    display: none;
  }
  
  .hbtns {
    justify-content: center;
  }
  
  .horigin {
    justify-content: center;
  }
  
  .ag,
  .cgrid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .al {
    position: static;
  }

  .aquote {
    font-size: 1.2rem;
    padding-left: 1rem;
    margin-bottom: 1.4rem;
  }

  .afacts {
    gap: .85rem;
    margin-top: 1.2rem;
  }

  .afact {
    font-size: .84rem;
    flex-wrap: wrap;
    line-height: 1.5;
  }

  .ar p {
    font-size: .93rem;
    line-height: 1.75;
  }
  
  .sgrid {
    grid-template-columns: 1fr;
  }
  
  .vgrid {
    grid-template-columns: 1fr;
  }
  
  .cbanner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  
  .frow {
    grid-template-columns: 1fr;
  }
  
  footer {
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
  }
  
  .journey-stats {
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .jstat-click {
    overflow: visible;
  }

  .jstat-list {
    min-width: 200px;
  }

  .jcard-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 4px;
  }

  .jcard-head {
    flex-wrap: wrap;
    gap: .6rem;
  }

  .jcard-date {
    margin-left: 0;
  }

  .ji[data-t="career"] .jcard {
    padding: 1.1rem 1.2rem;
  }

  .ji[data-t="spark"] .jcard {
    max-width: 100%;
  }

  .spark-toggle {
    margin-left: 0;
    margin-top: .4rem;
  }

  .jsort-toggle {
    margin-left: 0;
    margin-top: .4rem;
  }

  .jcreds .cert-row {
    gap: .4rem;
  }

  .jcreds .cbadge {
    flex: 1 1 calc(50% - .2rem);
    min-width: 140px;
  }

  /* Tighten timeline for mobile */
  .yr-marker .yr-label {
    font-size: .76rem;
  }

  .jcard-group-head {
    padding: 1rem 1.2rem;
  }

  .jcard-role {
    padding: 1rem 1.2rem;
  }

  .wip-banner {
    padding: .6rem 2.5rem .6rem 1rem;
    font-size: .75rem;
  }

  .cert-row {
    overflow-x: auto;
  }

  .journey-stats {
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }

  #hero {
    padding: 6rem 1rem 3rem;
  }

  nav {
    padding: .8rem 1rem;
  }

  .ag {
    gap: 1.8rem;
  }

  .aquote {
    font-size: 1.1rem;
    padding-left: .9rem;
    margin-bottom: 1.2rem;
  }

  .afacts {
    gap: .7rem;
    margin-top: 1rem;
  }

  .afact {
    font-size: .82rem;
    gap: .5rem;
  }

  .ar p {
    font-size: .88rem;
  }

  /* Even tighter timeline on small phones */
  .yr-marker .yr-label {
    font-size: .7rem;
  }

  .ji[data-t="career"] .jcard {
    padding: 1rem;
  }

  .jcard-role {
    padding: .9rem 1rem;
  }

  .jcard-group-head {
    padding: .9rem 1rem;
  }

  .jcard-role-spark {
    padding: .45rem 1rem;
  }

  .journey-stats {
    grid-template-columns: 1fr;
    border-radius: 20px;
    overflow: visible;
  }

  .journey-stats .jstat {
    border-radius: 0;
  }

  .journey-stats .jstat:first-child {
    border-radius: 20px 20px 0 0;
  }

  .journey-stats .jstat:last-child {
    border-radius: 0 0 20px 20px;
  }

  .jstat-click {
    overflow: visible;
  }

  .jstat-list {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--sand);
    min-width: 100%;
    margin-top: .5rem;
  }

  .jstat-click.open .jstat-list {
    padding: .4rem 0;
  }

  .jstat-list li {
    text-align: center;
  }

  footer {
    padding: 2rem 1rem;
  }

  .htitle {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }
}
