/* Visual style adapted from the "JCREA" Product Designer Portfolio community template
   by Jayesh Patil (Figma Community, personal-use licence). Re-implemented in plain CSS. */
@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  /* Template palette */
  --orange: #fd853a;      /* fills, accents */
  --orange-ink: #e8681f;  /* orange text & buttons with white text (meets 3:1 for large text) */
  --orange-soft: #feb273; /* hero half-circle */
  --orange-wash: #ffead5;
  --navy: #344054;        /* headings */
  --gray-500: #667085;    /* body text */
  --gray-400: #98a2b3;
  --gray-200: #e4e7ec;
  --gray-100: #f2f4f7;
  --dark: #171717;
  --dark-2: #272727;

  /* Roles used by the charts and older markup */
  --page: #ffffff;
  --surface: #ffffff;
  --ink: #1d2939;
  --ink-2: #475467;
  --muted: #98a2b3;
  --grid: #eaecf0;
  --axis: #d0d5dd;
  --border: #e4e7ec;
  --s1: #2a78d6; /* chart blue */
  --s2: #eb6834; /* chart orange */
  --s3: #1baf7a; /* chart aqua */
  --neutral: #b5b3ab;
  --accent: var(--orange-ink);
  --good: #067647;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --radius-xl: 32px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--orange-ink); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hl { color: var(--orange-ink); }

h1, h2, h3 { color: var(--navy); line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 72px; margin-bottom: 16px; }
h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 20px; color: var(--gray-500); max-width: 760px; margin-top: 16px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
.small { font-size: 15px; color: var(--gray-500); }
.muted { color: var(--gray-400); }
.prose { max-width: 760px; }
.prose li { margin-bottom: 8px; color: var(--ink-2); }

/* ---------- Pill navigation ---------- */
.topbar { position: sticky; top: 12px; z-index: 50; padding: 0 24px; margin-top: 12px; }
.navpill {
  max-width: var(--max); margin: 0 auto; background: var(--dark); border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; padding: 8px; gap: 8px;
}
.navpill .links { display: flex; gap: 4px; flex: 1; }
.navpill .links.right { justify-content: flex-end; }
.navpill a.nl {
  color: #fff; text-decoration: none; font-size: 16px; font-weight: 500;
  padding: 12px 22px; border-radius: 999px; transition: background 0.15s;
}
.navpill a.nl:hover { background: rgba(255, 255, 255, 0.10); }
.navpill a.nl.active { background: var(--orange-ink); font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: 0.02em; padding: 0 16px; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 50%; background: var(--orange-ink); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: 0;
}
@media (max-width: 1080px) {
  .navpill .links { display: none; }
  .navpill .links.right { display: flex; flex: none; }
  .navpill .links.right a.nl:not(.cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: 600 18px/1 var(--font); padding: 18px 30px; border-radius: 999px; border: 1px solid transparent;
}
.btn-primary { background: var(--orange-ink); color: #fff; }
.btn-primary:hover { background: #d45a14; }
.btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--gray-100); }
.btn-light { color: #fff; }
.arrow-circle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--dark-2); color: #fff;
  display: grid; place-items: center; font-size: 22px; flex: none;
}

/* ---------- Hero (hub) ---------- */
.hero-home { text-align: center; padding-top: 48px; position: relative; overflow: hidden; }
.hello {
  display: inline-block; border: 1px solid var(--dark); border-radius: 999px; padding: 6px 20px;
  font-weight: 600; font-size: 18px; color: var(--dark); position: relative;
}
.hello::after { /* little accent strokes from the template */
  content: ""; position: absolute; right: -26px; top: -18px; width: 22px; height: 22px;
  border-top: 3px solid var(--orange); border-right: 3px solid var(--orange); border-radius: 0 14px 0 0; transform: rotate(10deg);
}
.hero-home h1 { margin-top: 18px; color: var(--dark); font-weight: 600; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stage {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; text-align: left;
  max-width: 1000px; margin: 56px auto 0; padding: 32px 40px; border-radius: 28px;
  background: linear-gradient(120deg, var(--orange-wash), #fff 70%); border: 1px solid #fde3cc;
}
.hero-quote { color: var(--navy); font-size: 20px; font-weight: 500; }
.hero-quote .q { font-size: 56px; line-height: 0.6; color: var(--orange-ink); font-weight: 800; display: block; margin-bottom: 10px; }
.hero-side { text-align: right; justify-self: end; }
section[id], footer[id], main[id] { scroll-margin-top: 110px; }
.hero-side .big { font-size: 36px; font-weight: 700; color: var(--dark); line-height: 1.1; }
.hero-side .lbl { color: var(--gray-500); font-size: 17px; }
@media (max-width: 860px) {
  .hero-stage { grid-template-columns: 1fr; text-align: center; padding: 28px 24px; }
  .hero-side { justify-self: center; text-align: center; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.why > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 520px) {
  .why .stats { grid-template-columns: 1fr; }
  .band-light, .band-dark { margin-left: 0; margin-right: 0; border-radius: 24px; }
  h2 { overflow-wrap: anywhere; }
}

/* ---------- Recruiter quick facts ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 40px auto 0; max-width: 1080px;
  border: 1px solid var(--gray-200); border-radius: 20px; background: #fff; text-align: left; overflow: hidden;
}
.facts > div { padding: 18px 22px; }
.facts > div + div { border-left: 1px solid var(--gray-200); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--gray-200); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--gray-200); }
}

/* ---------- Results strip ---------- */
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .results { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .results { grid-template-columns: 1fr; } }
.results a { display: block; text-decoration: none; background: var(--gray-100); border-radius: 18px; padding: 18px 20px; color: inherit; transition: background .15s; }
.results a:hover { background: var(--orange-wash); }
.results .n { font-size: 30px; font-weight: 800; color: var(--orange-ink); line-height: 1.1; }
.results .l { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.results .src { font-size: 12px; color: var(--gray-400); margin-top: 8px; font-weight: 600; }

/* ---------- Case-study TL;DR ---------- */
.tldr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--gray-200); border-radius: 20px; overflow: hidden; margin-top: 24px; background: #fff; }
.tldr > div { padding: 16px 20px; }
.tldr > div + div { border-left: 1px solid var(--gray-200); }
.tldr dt { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 4px; }
.tldr dd { margin: 0; font-size: 14.5px; color: var(--navy); line-height: 1.45; }
@media (max-width: 900px) {
  .tldr { grid-template-columns: 1fr 1fr; }
  .tldr > div:nth-child(3) { border-left: 0; }
  .tldr > div:nth-child(n+3) { border-top: 1px solid var(--gray-200); }
}
@media (max-width: 520px) { .tldr { grid-template-columns: 1fr; } .tldr > div + div { border-left: 0; border-top: 1px solid var(--gray-200); } }

/* ---------- Dark "services" band ---------- */
.band-dark {
  background: var(--dark); color: #fff; border-radius: var(--radius-xl); margin: 40px 12px 0;
  padding: 72px 0; position: relative; overflow: hidden;
}
.band-dark::before, .band-dark::after { /* soft orange shapes standing in for the template's 3D blobs */
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none;
}
.band-dark::before { width: 380px; height: 300px; left: -120px; top: 120px; background: var(--orange); }
.band-dark::after { width: 420px; height: 360px; right: -140px; bottom: -80px; background: #ff9b5c; }
.band-dark .wrap { position: relative; z-index: 1; }
.band-dark h2 { color: #fff; margin-top: 0; }
.band-dark .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.band-dark .head p { max-width: 460px; color: #eaecf0; font-size: 18px; }
.glass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
@media (max-width: 900px) { .glass-grid { grid-template-columns: 1fr; } }
.glass {
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden; display: flex; flex-direction: column;
}
.glass .gh { padding: 26px 28px; font-size: 26px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.glass .gb { padding: 24px 28px 28px; color: #eaecf0; font-size: 16px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.glass .gb .tools { font-size: 14px; color: #d0d5dd; }
.glass .viz { background: #fff; border-radius: 18px; padding: 14px; }
.glass .viz svg { display: block; width: 100%; height: auto; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: 1fr 48px 1fr; column-gap: 48px; margin-top: 40px; }
.timeline .left { text-align: left; }
.timeline .row { display: contents; }
.timeline .when h3 { font-size: 28px; }
.timeline .when .d { color: var(--gray-400); font-size: 18px; }
.timeline .what h3 { font-size: 28px; }
.timeline .what p { color: var(--gray-500); max-width: 440px; }
.timeline .dot { position: relative; display: flex; justify-content: center; }
.timeline .dot::before { content: ""; position: absolute; top: 0; bottom: -40px; border-left: 2px dashed var(--navy); }
.timeline .row:last-child .dot::before { bottom: auto; height: 24px; }
.timeline .dot span {
  position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--orange);
  outline: 2px dashed var(--navy); outline-offset: 5px; margin-top: 4px;
}
.timeline .row:nth-child(even) .dot span { background: var(--dark-2); }
.timeline .when, .timeline .what { padding-bottom: 56px; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 32px 1fr; column-gap: 20px; }
  .timeline .dot { grid-column: 1; grid-row: span 2; }
  .timeline .when { padding-bottom: 8px; }
}

/* ---------- Why hire me ---------- */
.band-light { background: var(--gray-100); border-radius: var(--radius-xl); margin: 72px 12px 0; padding: 72px 0; }
.why { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }
.why h2 { margin-top: 0; }
.why .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why .stats > div { background: #fff; border-radius: 20px; padding: 22px 24px; }
.why .stats .n { font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.why .stats .l { color: var(--gray-500); }

/* ---------- Portfolio cards ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 88px; }
.section-head h2 { margin: 0; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--gray-200);
  transition: transform 0.15s, box-shadow 0.15s;
}
a.work-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16, 24, 40, 0.10); }
.work-card .thumb { background: var(--gray-100); padding: 22px; position: relative; }
.work-card .thumb svg { display: block; width: 100%; height: auto; }
.work-card .thumb .go { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--orange-ink); color: var(--orange-ink); display: grid; place-items: center; font-size: 20px; background: #fff; }
.work-card .body { padding: 22px 26px 26px; }
.work-card .body h3 { font-size: 26px; }
.work-card.soon { opacity: 0.85; }
.work-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.work-card.featured .thumb { display: grid; place-items: center; }
.work-card.featured .body { padding: 32px 36px; align-self: center; }
.work-card.featured .body h3 { font-size: 32px; }
@media (max-width: 860px) { .work-card.featured { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { background: var(--gray-100); color: var(--navy); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 500; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--gray-100); color: var(--gray-500); }
.tag.live { background: var(--orange-wash); color: #b54708; }

/* ---------- CTA ---------- */
.cta { text-align: center; padding: 96px 0 72px; }
.cta h2 { margin: 0 auto 28px; max-width: 820px; }
.cta .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-top: 22px; color: var(--navy); font-size: 15px; font-weight: 500; }
.trust span::before { content: "✦"; color: var(--orange-ink); margin-right: 8px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--dark-2); color: #fff; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin: 72px 0 0; padding: 56px 0 28px;
}
footer.site .top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid #475467; }
footer.site .top h2 { color: #fff; margin: 0; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid #475467; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site .cols h4 { color: var(--orange); margin: 0 0 16px; font-size: 17px; }
footer.site .cols a, footer.site .cols p { color: #eaecf0; text-decoration: none; font-size: 15px; }
footer.site .cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
footer.site .cols a:hover { color: #fff; text-decoration: underline; }
footer.site .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: #d0d5dd; }
footer.site .bottom a { color: #d0d5dd; }

/* ---------- Case study pages ---------- */
header.hero { padding: 72px 0 32px; }
header.hero h1 { font-size: clamp(36px, 5.5vw, 64px); }
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: 24px; padding: 24px 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 680px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.stat { background: var(--gray-100); border: 0; }
.stat .value { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--orange-ink); }
.stat .label { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.notice { border-left: 3px solid var(--orange); padding: 10px 16px; background: var(--gray-100); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--ink-2); }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--grid); }
th { font-weight: 600; color: var(--ink-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; font-size: 15px; color: var(--ink-2); margin-top: 12px; }
.table-scroll { overflow-x: auto; }

.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 16px; }
.controls label { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
select, input[type="number"] {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--axis); border-radius: 12px; padding: 9px 12px; min-width: 150px;
}
.seg { display: inline-flex; background: var(--gray-100); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 15px; font-weight: 600; padding: 8px 18px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; border-radius: 999px; }
.seg button[aria-pressed="true"] { background: var(--dark); color: #fff; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tip { position: absolute; pointer-events: none; z-index: 5; background: var(--dark); color: #fff; font-size: 14px; line-height: 1.45; padding: 8px 12px; border-radius: 10px; max-width: 280px; opacity: 0; transition: opacity 0.12s; }
.tip.on { opacity: 1; }
.result { margin-top: 14px; padding: 18px 20px; border-radius: 16px; background: var(--gray-100); }
.result .big { font-size: 24px; font-weight: 700; color: var(--navy); }

/* ---------- Small-screen overrides (keep last so they win) ---------- */
@media (max-width: 520px) {
  .why .stats { grid-template-columns: 1fr; }
  .why .stats .n { font-size: 30px; }
  .section-head h2 br { display: none; }
}
