:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --band: #f2eee6;
  --ink: #16181d;
  --muted: #5b6070;
  --line: #e4ded2;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --warm: #e2572b;
  --ok: #1d9a5b;
  --cta-bg: #12172a;
  --cta-ink: #f5f3ee;
  --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 8px 24px rgba(20, 20, 30, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1116; --surface: #171a21; --band: #13161c; --ink: #ecebe6; --muted: #a2a6b3;
    --line: #262a33; --accent: #6f95ff; --accent-ink: #0b0d12; --warm: #ff8a5c; --ok: #4fd18e;
    --cta-bg: #1a2140; --cta-ink: #f5f3ee; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1116; --surface: #171a21; --band: #13161c; --ink: #ecebe6; --muted: #a2a6b3;
  --line: #262a33; --accent: #6f95ff; --accent-ink: #0b0d12; --warm: #ff8a5c; --ok: #4fd18e;
  --cta-bg: #1a2140; --cta-ink: #f5f3ee; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-light { background: var(--cta-ink); color: var(--cta-bg); }
.btn-outline { background: transparent; color: var(--cta-ink); border-color: rgba(255,255,255,.3); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.logo-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.burger, .menu-only { display: none; }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.icon-btn.burger { display: none; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; padding-top: 80px; padding-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-bottom: 22px; }
h1 em { font-style: normal; background: linear-gradient(90deg, #3b5bfd, #9b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--muted); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-meta { font-size: 14px; color: var(--muted); }

.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--warm)));
  display: grid; place-items: center;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.card-lines { margin-top: 16px; display: grid; gap: 10px; font-size: 14.5px; }
.card-lines div { display: flex; gap: 12px; }
.card-lines span { flex: 0 0 48px; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 40px; }
.stats.wrap { max-width: 1072px; padding: 0; margin: 0 auto 40px; }
@media (max-width: 1120px) { .stats.wrap { margin-left: 24px; margin-right: 24px; } }
@media (max-width: 600px) { .stats.wrap { margin-left: 16px; margin-right: 16px; } }
.stat { background: var(--surface); padding: 26px 24px; }
.stat b { display: block; font: 800 40px/1.1 "Plus Jakarta Sans", Inter, sans-serif; color: var(--ink); margin-bottom: 6px; }
.stat span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding-top: 88px; padding-bottom: 88px; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 40px; max-width: 680px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
.sub { color: var(--muted); margin-top: 14px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.about .sec-head { margin-bottom: 0; }
.about-body p { font-size: 18px; }
.about-body strong { color: var(--accent); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts span { flex: 0 0 110px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }

/* Cases */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.case .tag { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.case h3 { font-size: 22px; margin-bottom: 10px; }
.case > p:not(.tag) { color: var(--muted); font-size: 15.5px; }
.nums { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.nums b { color: var(--ink); font-size: 16px; }
.more { margin: 32px 0 0; }
.more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.svc { padding: 30px 28px 30px 0; border-bottom: 1px solid var(--line); }
.svc:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.svc-n { font: 600 14px/1 Inter, sans-serif; color: var(--warm); margin-bottom: 18px; }
.svc h3 { font-size: 21px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Quote */
.quote-sec { padding-top: 24px; }
.quote { margin: 0; padding: 48px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 20px; font: 600 clamp(20px, 2.4vw, 26px)/1.45 "Plus Jakarta Sans", Inter, sans-serif; }
.quote figcaption { color: var(--muted); font-size: 15px; }
.quote figcaption b { color: var(--ink); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 36px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.when { display: block; font-size: 13px; font-weight: 600; color: var(--warm); margin-bottom: 4px; letter-spacing: .02em; }
.timeline h3 { font-size: 21px; margin-bottom: 6px; }
.timeline p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* Elsewhere */
.elsewhere { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.elsewhere a {
  display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease;
}
.elsewhere a:hover { border-color: var(--accent); transform: translateY(-2px); }
.elsewhere b { font-size: 16px; }
.elsewhere b::after { content: " ↗"; color: var(--accent); }
.elsewhere span { color: var(--muted); font-size: 14px; }

/* CTA */
.cta { background: var(--cta-bg); color: var(--cta-ink); padding: 96px 0; }
.cta-in { max-width: 820px; text-align: center; }
.cta h2 { color: var(--cta-ink); margin-bottom: 18px; }
.cta p { color: color-mix(in srgb, var(--cta-ink) 70%, transparent); font-size: 18px; }
.cta .hero-cta { justify-content: center; margin-bottom: 0; }

/* Hero extras */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface); padding: 6px 14px; border-radius: 999px;
}
.pill-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.badge {
  position: absolute; z-index: 2; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
}
.badge b { font: 800 22px/1 "Plus Jakarta Sans", Inter, sans-serif; color: var(--ok); }
.badge span { font-size: 12px; line-height: 1.3; color: var(--muted); font-weight: 600; }

/* About traits */
.traits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.trait { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.trait b { display: block; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 16px; margin-bottom: 4px; }
.trait span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Reviews: cards */
.rcard { margin: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); position: relative; }
.rcard::before {
  content: "“"; position: absolute; top: 6px; right: 26px; font: 800 96px/1 "Plus Jakarta Sans", Georgia, serif;
  color: color-mix(in srgb, var(--accent) 14%, transparent); pointer-events: none;
}
.rcard-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rating { font-weight: 700; font-size: 14px; }
.rec { font-size: 13px; font-weight: 600; color: var(--muted); }
.rcard blockquote { margin: 18px 0 26px; font: 500 17.5px/1.65 Inter, system-ui, sans-serif; color: var(--ink); }
.person { margin-top: auto; display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.avatar svg { display: block; width: 100%; height: 100%; }
.who { display: grid; line-height: 1.35; }
.who b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 16.5px; }
.who .role { font-size: 14px; font-weight: 600; color: var(--accent); }
.who .meta { font-size: 13px; color: var(--muted); }

/* Reviews: carousel */
.carousel { position: relative; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 24px; margin: -4px -4px 0; scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 24px; }
.slide { flex: 0 0 62%; scroll-snap-align: start; }
.slide blockquote { font-size: 19px; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.carousel.static .car-nav { display: none; }
.car-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.car-btn:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.car-btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.dots { display: flex; gap: 8px; }
.dot-btn { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: var(--line); transition: width .25s ease, background .25s ease; }
.dot-btn[aria-current="true"] { width: 28px; background: var(--accent); }

/* Main portfolio strip: same card as the Upwork strip, in the button blue */
.ghl-strip { margin-top: 32px; }
.ghl-strip .up-logo { background: var(--accent); color: var(--accent-ink); }
.ghl-strip:hover { border-color: var(--accent); }
.ghl-cta { flex-basis: 100%; display: flex; justify-content: center; padding-top: 4px; }

/* Reviews page grid */
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.src { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.src-li { --c: #0a66c2; }
.src-up { --c: #108a00; }
.src-li, .src-up { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.stars { color: #f5a623; letter-spacing: 1px; }

.upwork-strip {
  margin-top: 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.upwork-strip:hover { border-color: #14a800; transform: translateY(-2px); }
.up-logo { width: 46px; height: 46px; border-radius: 12px; background: #14a800; color: #fff; display: grid; place-items: center; font: 800 17px/1 "Plus Jakarta Sans", sans-serif; flex: none; }
.up-text { display: grid; flex: 1 1 220px; }
.up-text b { font-size: 17px; }
.up-text span { font-size: 14px; color: var(--muted); }
.up-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.up-stats span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--band); border: 1px solid var(--line); color: var(--muted); }
.up-stats b { color: var(--ink); }
.up-go { font-weight: 700; color: var(--ok); font-size: 15px; }

/* Black-and-white portrait */
img.bw { filter: grayscale(1) contrast(1.06); }

/* Nav current page */
.links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (min-width: 961px) {
  .links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
}

/* Inner page hero */
.page-hero { padding-top: 72px; padding-bottom: 48px; }
.page-hero h1 { max-width: 860px; }
.page-hero .lede { max-width: 680px; }
.section-tight { padding-bottom: 88px; }
.about-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grad-photo { position: relative; margin: 0; aspect-ratio: 4 / 5; }
.grad-photo figcaption, .gallery figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.gallery .slide.photo-slide { flex: 0 0 calc((100% - 40px) / 3); }
.gallery figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease, filter .4s ease; }
.gallery a { text-decoration: none; }
.gallery figure:hover img { transform: scale(1.03); }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sec-head-row .more { margin: 0; }

/* About page bits */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chips span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.facts { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); max-width: 820px; }
.facts li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts span { flex: 0 0 110px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.facts a { color: var(--accent); text-decoration: none; }

/* Services detail + process */
.services-detail ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.services-detail li { position: relative; padding-left: 24px; font-size: 14.5px; }
.services-detail li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: grid; gap: 8px; }
.steps li::before { content: counter(step, decimal-leading-zero); font: 800 14px/1 "Plus Jakarta Sans", sans-serif; color: var(--warm); }
.steps b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 20px; }
.steps span { color: var(--muted); font-size: 14.5px; }

.edu-lines { display: grid; gap: 4px; margin-top: 10px; }
.edu-lines p { margin: 0; color: var(--muted); font-size: 15.5px; }
.edu-lines .edu-school { color: var(--ink); font-weight: 600; font-size: 16.5px; }
.edu-lines .edu-cgpa { color: var(--accent); font: 800 18px/1.4 "Plus Jakarta Sans", Inter, sans-serif; }
.edu-card .edu-dept { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.uni-logo { width: 72px; height: auto; display: block; margin-bottom: 18px; }
.edu-teaser .uni-logo { margin: 0; }

/* Education teaser + extras */
.edu-teaser { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.edu-teaser .kicker { margin-bottom: 6px; }
.edu-teaser h2 { font-size: clamp(24px, 2.6vw, 32px); }
.edu-teaser .sub { margin: 8px 0 0; }
.traits-4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; }
.langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.langs div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 2px; }
.langs b { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 18px; }
.langs span { color: var(--muted); font-size: 14px; }

/* Education */
.edu { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.edu-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.edu-main { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.edu-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.edu-card h3 { font-size: 23px; margin: 4px 0 6px; }
.edu-card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.edu-card .edu-school { color: var(--ink); font-weight: 600; font-size: 16.5px; }
.edu-grade { position: absolute; top: 26px; right: 26px; text-align: right; }
.edu-grade b { display: block; font: 800 30px/1 "Plus Jakarta Sans", Inter, sans-serif; color: var(--accent); }
.edu-grade span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Profiles */
.profiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.profile-up { grid-column: span 2; }
.profile-x { --brand: #111; }
.profile-x .p-ico { background: #000; }
.reviews .review-lg { grid-row: span 2; }
.profile {
  --brand: var(--accent);
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center;
  padding: 20px; border-radius: 18px; text-decoration: none; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.profile:hover { border-color: var(--brand); transform: translateY(-2px); }
.p-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--brand); }
.profile b { font-size: 16px; }
.profile b::after { content: " ↗"; color: var(--muted); font-weight: 500; }
.profile > span:last-child { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.profile-up { --brand: #14a800; }
.profile-li { --brand: #0a66c2; }
.profile-fb { --brand: #1877f2; }
.profile-ig { --brand: #d62976; }
.profile-ig .p-ico { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
.profile-ghl { --brand: #3b5bfd; }
.profile-ghl .p-ico { background: linear-gradient(135deg, #3b5bfd, #9b5cf6); }
.profile-mail { --brand: var(--warm); }

/* Footer */
.foot { background: var(--band); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-brand .logo { font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 18px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 340px; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); transition: color .2s ease, border-color .2s ease;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.foot-col a { text-decoration: none; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--accent); }
.foot-col span { color: var(--muted); font-size: 14.5px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot-bottom a { color: var(--muted); text-decoration: none; }
.foot-bottom a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .hero-card { max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc:not(:nth-child(3n+1)) { padding: 28px 24px 28px 0; border-left: 0; }
  .svc:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .edu { grid-template-columns: 1fr; }
  .rgrid { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 360px; }
  .gallery .slide.photo-slide { flex-basis: calc((100% - 20px) / 2); }
  .steps, .traits-4, .langs { grid-template-columns: repeat(2, 1fr); }
  .edu-teaser { grid-template-columns: auto 1fr; }
  .edu-teaser .btn { grid-column: 1 / -1; justify-self: start; }
  .profiles { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .icon-btn.burger { display: grid; }
  .links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; box-shadow: var(--shadow);
  }
  .links.open { display: flex; }
  .links a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .links a:last-child { border-bottom: 0; }
  .menu-only { display: block; }
}
@media (max-width: 1080px) and (min-width: 961px) {
  .links { gap: 20px; }
}
@media (max-width: 420px) {
  .logo-name { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .stat { padding: 20px 16px; }
  .stat b { font-size: 32px; }
  .cases, .services, .traits, .profiles { grid-template-columns: 1fr; }
  .profile-up { grid-column: auto; }
  .slide { flex-basis: 88%; }
  .gallery .slide.photo-slide { flex-basis: 72%; }
  .slide blockquote, .rcard blockquote { font-size: 16px; }
  .rcard { padding: 24px; }
  .page-hero { padding-top: 48px; padding-bottom: 32px; }
  .section-tight { padding-bottom: 64px; }
  .steps, .traits-4 { grid-template-columns: 1fr; }
  .edu-teaser { grid-template-columns: 1fr; padding: 24px; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts span { flex: none; }
  .svc, .svc:nth-child(2n), .svc:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .review, .edu-card { padding: 24px; }
  .edu-grade { position: static; text-align: left; margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
  .edu-grade b { display: inline; font-size: 26px; }
  .hide-xs { display: none; }
  .links { padding: 8px 16px 16px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-body p { font-size: 17px; }
  .cta { padding: 72px 0; }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
