/* ==========================================================================
   Deekshith Raj Basa — Portfolio
   Clean SaaS-style system: royal blue + slate, Plus Jakarta Sans
   ========================================================================== */

:root {
  --brand-50: #eef3ff; --brand-100: #dbe5fe; --brand-200: #bfd1fe; --brand-300: #93b2fc;
  --brand-400: #6089f7; --brand-500: #3b67f0; --brand-600: #1c52db; --brand-700: #1742b4;
  --brand-800: #183892; --brand-900: #1a3373; --brand-950: #132046;

  --green-50: #ecfdf5; --green-600: #059669;
  --amber-50: #fffbeb; --amber-600: #d97706;
  --rose-50: #fff1f2;  --rose-600: #e11d48;
  --violet-50: #f5f3ff; --violet-600: #7c3aed;
  --cyan-50: #ecfeff;  --cyan-600: #0891b2;

  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme='light'] {
  --canvas: #edf1f9;
  --canvas-subtle: #f6f8fc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --text-4: #94a3b8;
  --primary: var(--brand-600);
  --primary-hover: var(--brand-700);
  --primary-text: var(--brand-600);
  --shadow-sm: 0 1px 2px rgba(11, 18, 34, .06);
  --shadow-md: 0 10px 30px -12px rgba(19, 32, 70, .18);
  --shadow-lg: 0 24px 60px -20px rgba(19, 32, 70, .28);
  --grid: rgba(28, 82, 219, .06);
  --nav-bg: rgba(246, 248, 252, .85);
  --logo-filter: grayscale(1) contrast(.9) brightness(.35);
  color-scheme: light;
}

[data-theme='dark'] {
  --canvas: #0b1222;
  --canvas-subtle: #0e1629;
  --surface: #121c33;
  --border: #1f2b45;
  --border-soft: #19233a;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --text-4: #64748b;
  --primary: var(--brand-500);
  --primary-hover: var(--brand-400);
  --primary-text: var(--brand-300);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .6);
  --grid: rgba(96, 137, 247, .07);
  --nav-bg: rgba(11, 18, 34, .8);
  --logo-filter: grayscale(1) brightness(0) invert(.85);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--canvas-subtle);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; color: var(--text); letter-spacing: -.03em; line-height: 1.12; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brand-200); color: var(--brand-950); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.08rem; letter-spacing: -.03em; }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  box-shadow: 0 6px 16px -6px rgba(28, 82, 219, .7);
}
.brand__mark svg { width: 74%; height: 74%; fill: #fff; }
.brand__word { height: 20px; width: 38.5px; fill: currentColor; }
.brand { gap: .55rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 48px; padding: 0 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 700 .95rem var(--font); cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s, color .2s;
}
.btn svg { transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { height: 38px; padding: 0 .95rem; font-size: .875rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(28, 82, 219, .6); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn--light { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn--light:hover { border-color: var(--brand-300); color: var(--primary-text); }
.btn--white { background: #fff; color: var(--brand-700); }
.btn--white:hover { background: var(--brand-50); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--primary-text); border-color: var(--brand-300); }
[data-theme='light'] .i-sun, [data-theme='dark'] .i-moon { display: none; }
.menu-btn { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.nav__links { display: flex; gap: .25rem; }
.nav__links a {
  padding: .45rem .8rem; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--primary-text); background: var(--brand-50); }
[data-theme='dark'] .nav__links a:hover, [data-theme='dark'] .nav__links a.is-active { background: rgba(59, 103, 240, .12); }
.nav__mobile-cta { display: none; }
.nav__actions { display: flex; align-items: center; gap: .5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(760px 520px at 88% 10%, rgba(28, 82, 219, .16), transparent 70%),
    radial-gradient(600px 420px at 0% 100%, rgba(139, 92, 246, .08), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--canvas);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 3.5rem; align-items: center; }
.hero__grid > * { min-width: 0; }

.badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .3rem .85rem .3rem .3rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 600; color: var(--text-2);
}
.badge__tag { padding: .15rem .55rem; border-radius: 999px; background: var(--brand-600); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); letter-spacing: -.045em; line-height: 1.04; margin: 1.5rem 0 1.25rem; }
.hl {
  color: var(--primary); white-space: nowrap;
  background: linear-gradient(var(--brand-300), var(--brand-300)) 0 96% / 100% 4px no-repeat;
}
[data-theme='dark'] .hl { color: var(--brand-400); background-image: linear-gradient(var(--brand-700), var(--brand-700)); }
.lead { font-size: 1.08rem; color: var(--text-2); max-width: 35rem; line-height: 1.7; }
.lead strong { color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.75rem; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.checks li { display: inline-flex; align-items: center; gap: .4rem; }
.checks svg { color: var(--primary); flex: none; }

.av {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  color: #fff; font-size: .62rem; font-weight: 800;
}
.av--blue { background: var(--brand-600); } .av--green { background: #10b981; } .av--violet { background: #8b5cf6; }
.av--amber { background: #f59e0b; } .av--rose { background: #f43f5e; } .av--cyan { background: #0891b2; }

/* Hero visual: profile card */
.hero__visual { position: relative; padding: 2.5rem 2.5rem 3rem 3.5rem; }
.profile {
  position: relative; max-width: 440px; margin-left: auto; border-radius: 26px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(28, 82, 219, .06);
  transform: rotate(1.2deg); transition: transform .5s var(--ease);
}
.hero__visual:hover .profile { transform: rotate(0); }
.profile__banner {
  position: relative; height: 112px; display: flex; justify-content: flex-end; align-items: flex-start; padding: 1rem;
  background:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 140% at 100% 0%, var(--brand-400), transparent 60%),
    linear-gradient(135deg, var(--brand-600), var(--brand-900));
}
.profile__chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  font-size: .72rem; font-weight: 700; backdrop-filter: blur(6px);
}
.profile__chip .pulse { background: #4ade80; }
.profile__body { padding: 0 1.5rem 1.5rem; }
.profile__id { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; margin-top: -42px; }
.profile__avatar {
  flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border: 4px solid var(--surface); box-shadow: 0 12px 24px -10px rgba(28, 82, 219, .7);
}
.profile__avatar svg { width: 72%; height: 72%; fill: #fff; }
.profile__id > div { display: flex; flex-direction: column; min-width: 0; }
.profile__name { display: flex; align-items: center; gap: .35rem; font-size: 1.12rem; letter-spacing: -.02em; }
.profile__verified { color: var(--brand-500); flex: none; }
.profile__role { font-size: .85rem; color: var(--text-2); font-weight: 600; }
.profile__role b { color: var(--primary-text); }
.profile__loc { font-size: .78rem; color: var(--text-4); }
.profile__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.3rem 0 1.25rem;
  border: 1px solid var(--border-soft); border-radius: 14px; background: var(--canvas-subtle);
}
.profile__stats div { display: flex; flex-direction: column; align-items: center; padding: .75rem .25rem; }
.profile__stats div + div { border-left: 1px solid var(--border-soft); }
.profile__stats strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.profile__stats span { font-size: .72rem; color: var(--text-4); font-weight: 600; }
.profile__stats strong span { font-size: inherit; color: inherit; font-weight: inherit; }
.profile__label { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); margin-bottom: .6rem; }
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.stack li {
  display: flex; align-items: center; gap: .45rem; padding: .45rem .55rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); font-size: .76rem; font-weight: 700; color: var(--text-2);
  transition: border-color .2s, transform .2s var(--ease);
}
.stack li:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.stack img { width: 16px; height: 16px; flex: none; }
[data-theme='dark'] .stack img { background: #fff; border-radius: 4px; padding: 1px; }

.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem; padding: .7rem .95rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.float strong { display: block; font-size: .82rem; }
.float small { display: block; font-size: .7rem; color: var(--text-3); }
.float--a { right: 0; bottom: -1.25rem; animation-delay: -3s; }
.float--b { left: 0; top: .25rem; flex-direction: column; align-items: flex-start; gap: .2rem; }
.float__stars { color: #f59e0b; font-size: .8rem; letter-spacing: .08em; line-height: 1; }
.float__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--amber-50); color: var(--amber-600); font-size: 1rem; flex: none; }
[data-theme='dark'] .float__icon { background: rgba(245, 158, 11, .15); color: #fcd34d; }
.profile__label--gap { margin-top: 1.2rem; }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps::before { content: ''; position: absolute; left: 10%; right: 10%; top: 5px; height: 2px; background: linear-gradient(90deg, var(--brand-200), var(--brand-600)); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; }
.steps span { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand-300); margin-bottom: .35rem; position: relative; }
.steps b { font-size: .7rem; font-weight: 700; color: var(--text-2); line-height: 1.2; }
.steps small { font-size: .62rem; color: var(--text-4); font-weight: 600; }
.steps li.is-now span { background: var(--brand-600); border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(28, 82, 219, .18); }
.steps li.is-now b, .steps li.is-now small { color: var(--primary-text); }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Role progression inside a job card */
.roles { display: grid; gap: .35rem; margin-top: .9rem; padding-left: .2rem; }
.roles li { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 .6rem; padding-left: 1.1rem; font-size: .88rem; }
.roles li::before { content: ''; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--brand-300); background: var(--surface); }
.roles li.is-now::before { background: var(--brand-600); border-color: var(--brand-600); }
.roles strong { font-weight: 700; }
.roles span { font-size: .8rem; color: var(--text-4); }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
  background: var(--canvas); color: var(--text-2);
}
.tag--blue { background: var(--brand-50); color: var(--brand-700); }
.tag--green { background: var(--green-50); color: var(--green-600); }
.tag--amber { background: var(--amber-50); color: var(--amber-600); }
.tag--rose { background: var(--rose-50); color: var(--rose-600); }
.tag--violet { background: var(--violet-50); color: var(--violet-600); }
[data-theme='dark'] .tag { background: rgba(148, 163, 184, .12); color: var(--text-2); }
[data-theme='dark'] .tag--blue { background: rgba(59, 103, 240, .18); color: var(--brand-300); }
[data-theme='dark'] .tag--green { background: rgba(16, 185, 129, .15); color: #6ee7b7; }
[data-theme='dark'] .tag--amber { background: rgba(245, 158, 11, .15); color: #fcd34d; }
[data-theme='dark'] .tag--rose { background: rgba(244, 63, 94, .15); color: #fda4af; }
[data-theme='dark'] .tag--violet { background: rgba(139, 92, 246, .18); color: #c4b5fd; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(28, 82, 219, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(28, 82, 219, 0); } }

/* ---------- Stats band ---------- */
.band { background: var(--brand-600); color: #fff; }
[data-theme='dark'] .band { background: var(--brand-800); }
.band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 2.75rem; padding-bottom: 2.75rem; }
.band strong { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.band__grid > div > span { display: block; margin-top: .75rem; font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .82); max-width: 15rem; }

/* ---------- Logos ---------- */
.logos { padding-top: 3.5rem; padding-bottom: 3.5rem; text-align: center; }
.logos > p { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 4.5rem; margin-top: 1.5rem; }
.logos__row img { height: 26px; width: auto; filter: var(--logo-filter); opacity: .7; transition: filter .3s, opacity .3s; }
.logos__row img:hover { filter: none; opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section--tint { background: var(--canvas); }
[data-theme='dark'] .section--tint { background: var(--canvas-subtle); }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 3.5rem; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-text); margin-bottom: .9rem; }
.eyebrow--light { color: var(--brand-200); }
.section__head h2 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -.04em; }
.section__head p:not(.eyebrow) { margin-top: 1rem; font-size: 1.05rem; color: var(--text-3); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
[data-theme='dark'] .card:hover { border-color: var(--brand-800); }
.card h3 { font-size: 1.12rem; letter-spacing: -.02em; margin-top: 1.1rem; }
.card__sub { font-size: .85rem; color: var(--text-4); margin-top: .2rem; }
.ico {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none;
  font-weight: 800; font-size: .95rem;
}
.ico--sm { width: 36px; height: 36px; border-radius: 10px; font-size: .85rem; }
.ico--blue { background: var(--brand-50); color: var(--brand-600); }
.ico--green { background: var(--green-50); color: var(--green-600); }
.ico--violet { background: var(--violet-50); color: var(--violet-600); }
.ico--amber { background: var(--amber-50); color: var(--amber-600); }
.ico--rose { background: var(--rose-50); color: var(--rose-600); }
.ico--cyan { background: var(--cyan-50); color: var(--cyan-600); }
.ico--glass { background: rgba(255, 255, 255, .14); color: #fff; }
[data-theme='dark'] .ico--blue { background: rgba(59, 103, 240, .16); color: var(--brand-300); }
[data-theme='dark'] .ico--green { background: rgba(16, 185, 129, .14); color: #6ee7b7; }
[data-theme='dark'] .ico--violet { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
[data-theme='dark'] .ico--amber { background: rgba(245, 158, 11, .14); color: #fcd34d; }
[data-theme='dark'] .ico--rose { background: rgba(244, 63, 94, .14); color: #fda4af; }
[data-theme='dark'] .ico--cyan { background: rgba(8, 145, 178, .18); color: #67e8f9; }

.dots { display: grid; gap: .55rem; margin-top: 1.1rem; }
.dots li { position: relative; padding-left: 1rem; font-size: .9rem; color: var(--text-2); line-height: 1.45; }
.dots li::before { content: ''; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-500); }

.cards { display: grid; gap: 1.1rem; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--feature { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-top: 1.1rem; }

.card--dark {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); border-color: transparent; color: #fff;
  padding: 2rem; overflow: hidden;
}
.card--dark::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%); pointer-events: none;
}
.card--dark:hover { border-color: transparent; }
.card--dark h3 { color: #fff; font-size: 1.35rem; }
.card--dark .feature > div > p { color: rgba(255, 255, 255, .82); margin-top: .6rem; font-size: .95rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; }
.meter-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; padding: 1rem; }
.card--dark .meter-card__q { margin-top: 0; }
.meter-card__q { background: #fff; color: var(--brand-950) !important; border-radius: 10px; padding: .55rem .8rem; font-size: .8rem; font-weight: 700; margin-bottom: .9rem; }
.meter { display: grid; grid-template-columns: 1fr auto; gap: .35rem; font-size: .78rem; margin-top: .7rem; }
.meter span { color: rgba(255, 255, 255, .85); }
.meter b { font-weight: 800; }
.meter i { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); position: relative; overflow: hidden; }
.meter i::after {
  content: ''; position: absolute; inset: 0; width: var(--v); border-radius: inherit; background: #fff;
  transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease) .25s;
}
.is-visible .meter i::after, .no-anim .meter i::after { transform: scaleX(1); }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; display: grid; gap: 1rem; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 39px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(var(--brand-300), var(--border));
}
.job { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 1.4rem; }
.job__logo {
  position: relative; display: grid; place-items: center; width: 80px; height: 80px; border-radius: 18px; padding: 10px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.job__logo img { max-height: 24px; width: auto; object-fit: contain; }
.job__main {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.job:hover .job__main { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
[data-theme='dark'] .job:hover .job__main { border-color: var(--brand-800); }
.job__top { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.job h3 { font-size: 1.2rem; }
.job__co { font-weight: 600; color: var(--text-2); margin-top: .3rem; font-size: .95rem; }
.job__meta { font-size: .85rem; color: var(--text-4); margin-top: .15rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.chips li {
  padding: .25rem .65rem; border-radius: 8px; font-size: .76rem; font-weight: 600;
  background: var(--canvas-subtle); border: 1px solid var(--border-soft); color: var(--text-2);
}

/* ---------- Education ---------- */
.edu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.1rem; align-items: start; }
.card--uni { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding: 2rem; }
.card--uni .tag { margin-top: 1.25rem; }
.card--uni h3 { font-size: 1.55rem; margin-top: .75rem; }
.certs { display: grid; gap: .7rem; }
.cert {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem 1rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .9rem 1.1rem;
  box-shadow: var(--shadow-sm); transition: border-color .3s, transform .3s var(--ease);
}
.cert:hover { border-color: var(--brand-200); transform: translateX(4px); }
[data-theme='dark'] .cert:hover { border-color: var(--brand-800); }
.cert strong { display: block; font-size: .95rem; font-weight: 700; }
.cert small { display: block; font-size: .8rem; color: var(--text-4); }

/* ---------- Testimonials ---------- */
.marquee {
  --gap: 1rem; overflow: hidden; padding: .5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: scroll 75s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 85s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.quote {
  margin: 0; width: 390px; flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 1.3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0; font-size: .93rem; line-height: 1.65; color: var(--text-2); }
.quote blockquote::before { content: '★★★★★'; display: block; color: #f59e0b; letter-spacing: .15em; font-size: .85rem; margin-bottom: .7rem; }
.quote figcaption a { display: flex; align-items: center; gap: .7rem; }
.quote .av { width: 40px; height: 40px; font-size: .78rem; }
.quote figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.quote strong { font-size: .9rem; }
.quote small { font-size: .78rem; color: var(--text-4); }
.quote a:hover strong { color: var(--primary-text); }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); border-radius: 28px; padding: 3rem;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 40px 40px;
  mask-image: radial-gradient(ellipse at 0% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 0% 0%, #000 20%, transparent 70%);
}
.contact > * { position: relative; }
.contact h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.04em; }
.contact__intro > p:not(.eyebrow) { color: rgba(255, 255, 255, .82); margin-top: 1rem; font-size: 1.02rem; }
.checks--light { flex-direction: column; color: #fff; margin: 1.5rem 0 2rem; }
.checks--light svg { color: var(--brand-200); }
.form { display: grid; gap: .9rem; background: var(--surface); border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 700; color: var(--text-2); }
.form input, .form textarea {
  width: 100%; font: 500 .95rem var(--font); color: var(--text); resize: vertical;
  padding: .7rem .85rem; border-radius: 10px; background: var(--canvas-subtle); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand-500); background: var(--surface); box-shadow: 0 0 0 4px rgba(28, 82, 219, .12); }
.form__status { min-height: 1.2em; font-size: .88rem; text-align: center; font-weight: 600; }
.form__status.ok { color: var(--green-600); }
.form__status.err { color: var(--rose-600); }

/* ---------- Footer ---------- */
.footer { background: #0b1222; color: #94a3b8; padding: 2.5rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.brand--light { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9rem; font-weight: 600; }
.footer__links a:hover { color: #fff; }
.footer__copy { width: 100%; font-size: .82rem; color: #64748b; border-top: 1px solid #1e293b; padding-top: 1.5rem; margin-top: .5rem; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .meter i::after { transform: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero__visual { max-width: 560px; }
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--feature, .edu { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); padding: 2.25rem; }
  .band__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-grid; }
  .hide-sm { display: none; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: .15rem; padding: .75rem 16px 1rem;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: .8rem .9rem; font-size: 1rem; }
  .nav__links .nav__mobile-cta { display: block; margin-top: .4rem; background: var(--primary); color: #fff; text-align: center; }
  .feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .container { padding-inline: 16px; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 4.5rem 0; }
  .cards--4 { grid-template-columns: minmax(0, 1fr); }
  .band__grid { gap: 1.5rem; }
  .band strong { font-size: 2.1rem; }
  .timeline::before { left: 27px; }
  .job { grid-template-columns: 56px minmax(0, 1fr); gap: .9rem; }
  .job__logo { width: 56px; height: 56px; border-radius: 14px; padding: 6px; }
  .job__logo img { max-height: 16px; }
  .job__main { padding: 1.1rem 1.15rem; }
  .cert { grid-template-columns: auto minmax(0, 1fr); }
  .cert .tag { grid-column: 2; justify-self: start; }
  .form__row { grid-template-columns: 1fr; }
  .contact { padding: 1.5rem; border-radius: 22px; }
  .form { padding: 1.2rem; }
  .quote { width: 300px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__visual { padding: 2.75rem 0 0; }
  .profile { transform: none; max-width: none; }
  .profile__body { padding: 0 1.1rem 1.2rem; }
  .profile__avatar { width: 72px; height: 72px; border-radius: 20px; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float--a { right: 8px; bottom: -.5rem; }
  .float--b { top: 0; left: 8px; }
  .hero__visual { padding-bottom: 3rem; }
}

/* ==========================================================================
   Brand & design palette page (brand.html)
   ========================================================================== */
.bp-hero { padding: 80px 0 72px; text-align: center; }
.bp-hero .lead { margin: 0 auto; }
.bp-hero h1 { margin: .25rem 0 1rem; }
.bp-head { max-width: 46rem; margin-bottom: 2.5rem; }
.bp-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.04em; }
.bp-head p:not(.eyebrow) { margin-top: .9rem; color: var(--text-3); font-size: 1.02rem; }
.bp-head strong { color: var(--text); }
.bp-subhead { font-size: 1rem; margin: 2.5rem 0 1rem; }
.bp-subhead span { font-weight: 500; color: var(--text-4); }

/* Logo tiles */
.bp-logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.bp-tile { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.bp-tile--wide { grid-column: span 2; }
.bp-stage {
  display: grid; place-items: center; height: 210px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--canvas-subtle);
}
.bp-stage--blue { background: linear-gradient(135deg, var(--brand-600), var(--brand-800)); }
.bp-stage--navy { background: #0b1222; }
.bp-tile figcaption { display: flex; justify-content: space-between; align-items: center; padding: .85rem 1.1rem; border-top: 1px solid var(--border-soft); font-size: .88rem; }
.bp-tile figcaption a { color: var(--primary-text); font-weight: 700; font-size: .82rem; }
.bp-tile figcaption a:hover { text-decoration: underline; }
.bp-lockup { display: inline-flex; align-items: center; gap: 18px; color: var(--text); }
.bp-lockup__mark { width: 96px; height: 96px; margin: -8px -10px; }
.bp-lockup__word { width: 135px; height: 70px; fill: currentColor; }
.bp-lockup--white { color: #fff; }
.bp-lockup--white .bp-lockup__mark { fill: #fff; }
.bp-symbol { width: 112px; height: 112px; }
.bp-appicon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 16px 30px -12px rgba(28, 82, 219, .6); }

.bp-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.bp-rules .card__sub { margin-top: .4rem; line-height: 1.5; }
.bp-clear { margin-top: 1.25rem; display: grid; place-items: center; padding: 22px; border: 1.5px dashed var(--brand-300); border-radius: 14px; background: var(--brand-50); }
[data-theme='dark'] .bp-clear { background: rgba(59, 103, 240, .1); }
.bp-clear svg { width: 72px; height: 72px; outline: 1px solid var(--brand-200); }
.bp-sizes { display: flex; align-items: flex-end; gap: 1.25rem; margin-top: 1.25rem; padding: 1rem; border-radius: 14px; background: var(--canvas-subtle); }

/* Colour */
.bp-primary { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.bp-hero-swatch {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: .2rem; min-height: 200px;
  padding: 1.4rem; border: 0; border-radius: var(--radius); background: var(--c); color: #fff; text-align: left; cursor: pointer;
  font-family: var(--font); box-shadow: var(--shadow-md); transition: transform .25s var(--ease);
}
.bp-hero-swatch:hover { transform: translateY(-3px); }
.bp-hero-swatch span { font-size: .78rem; font-weight: 700; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.bp-hero-swatch strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.bp-hero-swatch small { font-size: .8rem; opacity: .8; }
.bp-hero-swatch--light { color: #0f172a; border: 1px solid var(--border); }
.bp-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.bp-swatch {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; height: 116px; padding: .7rem .6rem;
  border: 0; cursor: pointer; color: #0f172a; font-family: var(--font); text-align: left; transition: transform .2s var(--ease);
}
.bp-swatch.is-dark { color: #fff; }
.bp-swatch:hover { transform: scaleY(1.06); position: relative; z-index: 1; }
.bp-swatch span { font-weight: 800; font-size: .85rem; }
.bp-swatch small { font-family: var(--mono, monospace); font-size: .66rem; opacity: .85; }
.bp-accents { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.bp-accent {
  display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: center; text-align: left;
  padding: .9rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); cursor: pointer; font-family: var(--font); color: var(--text);
  box-shadow: var(--shadow-sm);
}
.bp-accent:hover { border-color: var(--brand-300); }
.bp-accent__chip, .bp-accent__soft { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; }
.bp-accent__soft { border: 1px solid var(--border); }
.bp-accent strong { font-size: .9rem; }
.bp-accent small { font-size: .68rem; color: var(--text-4); }
.bp-gradient {
  width: 100%; height: 110px; border: 0; border-radius: var(--radius); cursor: pointer; display: flex; align-items: flex-end; padding: 1.2rem;
  background: linear-gradient(135deg, #3b67f0, #1742b4); color: #fff; font: 700 .9rem var(--font); box-shadow: var(--shadow-md);
}

/* Type */
.bp-type { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; }
.bp-specimen { display: flex; flex-direction: column; gap: 1rem; }
.bp-aa { font-size: 7rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--primary); }
.bp-glyphs { margin-top: 1rem; font-size: 1.05rem; line-height: 1.7; color: var(--text-2); word-break: break-all; }
.bp-scale-type { display: grid; gap: 1.1rem; }
.bp-scale-type > div { display: grid; gap: .25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--border-soft); }
.bp-scale-type > div:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-scale-type span { font-size: .72rem; font-weight: 700; color: var(--text-4); text-transform: uppercase; letter-spacing: .08em; }

/* UI */
.bp-ui { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.bp-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.bp-ui .av { width: 36px; height: 36px; font-size: .72rem; }

/* Toast */
.bp-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100;
  padding: .7rem 1.1rem; border-radius: 12px; background: #0b1222; color: #fff; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s var(--ease);
}
.bp-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1060px) {
  .bp-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-rules, .bp-type, .bp-primary { grid-template-columns: minmax(0, 1fr); }
  .bp-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bp-accents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bp-logos, .bp-ui { grid-template-columns: minmax(0, 1fr); }
  .bp-tile--wide { grid-column: auto; }
  .bp-scale { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bp-accents { grid-template-columns: minmax(0, 1fr); }
  .bp-lockup__mark { width: 80px; height: 80px; }
  .bp-lockup__word { width: 112px; height: 58px; }
}

/* Brand page hero: monochrome logo composition */
.bp-hero { text-align: left; padding: 72px 0 88px; }
.bp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.bp-hero .lead { margin: 0; }
.bp-mono { position: relative; height: 380px; }
.bp-mono__ghost {
  position: absolute; right: -40px; top: 50%; width: 420px; height: 420px; transform: translateY(-50%) rotate(-8deg);
  fill: var(--text); opacity: .045; pointer-events: none;
}
.bp-mono__card {
  position: absolute; display: flex; align-items: center; gap: 14px; padding: 26px 30px 40px; border-radius: 24px;
  box-shadow: var(--shadow-lg); transition: transform .5s var(--ease);
}
.bp-mono__card--paper { top: 22px; left: 0; background: #fff; color: #0b1222; border: 1px solid #e2e8f0; transform: rotate(-3deg); z-index: 1; }
.bp-mono__card--ink { bottom: 26px; right: 0; background: #0b1222; color: #fff; border: 1px solid #1e293b; transform: rotate(2deg); z-index: 2; }
.bp-mono:hover .bp-mono__card--paper { transform: rotate(-1deg) translateY(-4px); }
.bp-mono:hover .bp-mono__card--ink { transform: rotate(0) translateY(4px); }
.bp-mono__mark { width: 84px; height: 84px; margin: -8px -8px; fill: currentColor; }
.bp-mono__word { width: 118px; height: 61px; fill: currentColor; }
.bp-mono__label {
  position: absolute; left: 30px; bottom: 14px; font: 600 .66rem var(--font); letter-spacing: .1em; text-transform: uppercase; opacity: .5;
}
.bp-mono__chips {
  position: absolute; right: 18px; top: 8px; z-index: 3; display: flex; gap: 6px; padding: 7px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.bp-mono__chips button {
  width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 1px solid rgba(15, 23, 42, .15); cursor: pointer; padding: 0;
  transition: transform .2s var(--ease);
}
.bp-mono__chips button:hover { transform: scale(1.15); }

@media (max-width: 1060px) {
  .bp-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .bp-mono { max-width: 520px; width: 100%; }
}
@media (max-width: 600px) {
  .bp-mono { height: 330px; }
  .bp-mono__card { padding: 20px 22px 34px; gap: 10px; }
  .bp-mono__mark { width: 64px; height: 64px; }
  .bp-mono__word { width: 90px; height: 47px; }
  .bp-mono__label { left: 22px; bottom: 11px; }
  .bp-mono__ghost { width: 300px; height: 300px; right: -60px; }
}
