/* ============================================================
   Sankar Rao Togarapu — Premium Light Enterprise Portfolio
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --bg-panel: #eef5fb;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5d6b82;
  --muted-2: #8a97ab;
  --line: #e5eaf0;
  --line-strong: #d6dee8;

  --blue: #0a6ebd;
  --blue-600: #07579b;
  --blue-700: #06487f;
  --blue-050: #eef6fd;
  --blue-100: #dcebfa;
  --cyan: #38bdf8;
  --green: #12b76a;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 24px 48px -20px rgba(6, 87, 155, 0.18);

  --container: 1180px;
  --header-h: 68px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--blue); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--blue-600); }

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

strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--blue-100); color: var(--blue-700); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.icon { width: 22px; height: 22px; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 15.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand-role { font-size: 10.5px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.14em; }

.nav-links ul { display: flex; align-items: center; gap: 4px; }

.nav-link {
  display: inline-block;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius-pill);
  position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.is-active { color: var(--blue); font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.nav-link--cta {
  margin-left: 10px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: #fff;
  font-weight: 600;
}
.nav-link--cta:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn .icon { width: 17px; height: 17px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
  background: var(--blue-050);
}
.btn-ghost:active { transform: translateY(0); }

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
}

.section-lede {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 17px;
  color: var(--muted);
}

.section { padding-block: clamp(72px, 10vw, 112px); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section--contact { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }

.section-head { max-width: 640px; }
.section-head--center { text-align: center; margin-inline: auto; }

.section-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.section-layout .section-body > p { margin-bottom: 18px; }
.section-layout .section-body > p:last-child { margin-bottom: 0; }

.portrait { margin-top: 26px; }
.portrait img {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  background: var(--bg-soft);
  box-shadow: 0 0 0 1px var(--line-strong), 0 14px 30px -14px rgba(6, 87, 155, 0.4);
}
.portrait-name {
  display: block;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.portrait-role {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(64px, 9vw, 110px) clamp(56px, 8vw, 96px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 55%, #f4f9fe 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-title {
  font-size: clamp(40px, 5.4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-title-accent-block {
  display: inline-block;
  color: var(--blue);
}

.hero-lede {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.availability-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.4);
  animation: pulse 2.4s ease-out infinite;
}

/* Hero visual */
.hero-visual .icon { display: none; }
.hero-visual svg { width: 100%; height: auto; transform: translateY(0); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.35); }
  70% { box-shadow: 0 0 0 9px rgba(18, 183, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0); }
}

/* ---------- Snapshot stats ---------- */

.snapshot {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: -56px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 5;
}
.snapshot-grid .stat {
  background: #fff;
  padding: 28px 28px 30px;
  text-align: center;
}
.stat-value {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}
.stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.snapshot + .section { padding-top: clamp(84px, 11vw, 128px); }

/* ---------- Timeline ---------- */

.timeline {
  max-width: 780px;
  margin: 56px auto 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-100), var(--blue));
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  padding-left: 76px;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: 4px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-100);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-item.is-active .timeline-marker,
.timeline-marker--accent {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px rgba(10, 110, 189, 0.12);
  transform: scale(1.05);
}
.timeline-marker--accent { background: var(--blue); color: #fff; }

.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.timeline-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.timeline-item.is-active .timeline-card { border-color: var(--blue-100); }

.timeline-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.timeline-meta { font-size: 13.5px; font-weight: 600; color: var(--blue); margin-top: 4px; }
.timeline-text { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* ---------- SAP FICO focus ---------- */

.fico-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 36px);
  margin-top: 56px;
}

.fico-column {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.fico-column:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.fico-column-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.fico-column-head h3 { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }

.fico-badge {
  flex: 0 0 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.fico-column:nth-child(2) .fico-badge { background: var(--cyan); color: #063a5c; }

.fico-list { display: grid; grid-template-columns: 1fr; }
.fico-list li {
  display: flex;
  gap: 16px;
  padding: 13px 6px;
  border-bottom: 1px dashed var(--line);
}
.fico-list li:last-child { border-bottom: 0; }

.fico-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-050);
  color: var(--blue);
}
.fico-list li span:last-child { min-width: 0; }
.fico-list strong { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.fico-list small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Business process flow ---------- */

.flow { max-width: 720px; margin: 56px auto 0; position: relative; }
.flow::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-100), var(--blue-600));
  opacity: 0.4;
}

.flow-step {
  position: relative;
  padding-left: 74px;
  padding-bottom: 26px;
}
.flow-step:last-child { padding-bottom: 0; }

.flow-num {
  position: absolute;
  left: 4px;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 800;
  font-size: 15px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.flow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.flow-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.flow-card h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.flow-card p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

/* ---------- Skills ---------- */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
  margin-top: 56px;
}

.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.skill-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.skill-cat {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.skill-tags li:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }

/* ---------- Projects ---------- */

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 28px);
  margin-top: 56px;
}

.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-md); }

.project-card details > summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 26px;
  user-select: none;
}
.project-card details > summary::-webkit-details-marker { display: none; }
.project-card details > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.project-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}
.project-title-row h3 { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; line-height: 1.35; }

.project-chev {
  flex: 0 0 20px;
  color: var(--muted-2);
  transition: transform 0.3s ease, color 0.3s ease;
}
.project-card details[open] .project-chev { transform: rotate(90deg); color: var(--blue); }

.tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.tag--project {
  background: var(--blue-050);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
}

.project-fields {
  padding: 4px 26px 26px;
  border-top: 1px solid var(--line);
}
.project-fields > div { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.project-fields > div:last-child { border-bottom: 0; }
.project-fields dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.project-fields dd { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }

/* ---------- Roadmap (learning journey) ---------- */

.roadmap {
  position: relative;
  margin-top: 12px;
  border-left: 2px solid var(--blue-100);
}
.roadmap > li {
  position: relative;
  padding: 0 0 34px 40px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.roadmap > li:last-child { padding-bottom: 0; }
.roadmap > li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--blue);
}

.roadmap-num {
  flex: 0 0 44px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--blue-600);
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  padding: 8px 0;
  text-align: center;
}
.roadmap h3 { font-size: 17.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.roadmap p { font-size: 14.5px; color: var(--muted); margin-top: 5px; max-width: 520px; }

/* ---------- Why SAP FICO ---------- */

.why-panel {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 6vw, 72px);
}

.why-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.why-statement {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 20px auto 18px;
  max-width: 640px;
}
.why-body { font-size: 16.5px; color: var(--muted); max-width: 640px; margin: 0 auto; }

.why-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
  text-align: left;
}

.why-point {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.why-point:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: var(--shadow-md); }

.why-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-050);
  color: var(--blue);
  margin-bottom: 16px;
}
.why-point h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.why-point p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Experience ---------- */

.experience-card {
  max-width: 860px;
  margin: 56px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.experience-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 34px 38px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.experience-org { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.experience-role { font-size: 15px; font-weight: 500; color: var(--blue); margin-top: 4px; }
.experience-tenure {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--blue-050);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  white-space: nowrap;
}

.experience-roles { display: grid; grid-template-columns: 1fr 1fr; }
.experience-role-block { padding: 30px 38px; border-right: 1px solid var(--line); }
.experience-role-block:last-child { border-right: 0; }
.experience-role-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.experience-role-block h4 { font-size: 17.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.experience-role-block p:last-child { font-size: 14.5px; color: var(--muted); }

.experience-note {
  padding: 18px 38px;
  font-size: 13.5px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

/* ---------- Freelance ---------- */

.freelance-panel {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(44px, 7vw, 76px) clamp(24px, 6vw, 72px);
}

.freelance-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 640px;
  margin-inline: auto;
}
.freelance-text {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 600px;
  margin: 18px auto 32px;
}
.freelance-actions { display: flex; justify-content: center; }

/* ---------- Resume ---------- */

.resume-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: 56px;
}

.contact-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.contact-item:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-050);
  color: var(--blue);
}
.contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.contact-value { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.contact-value a { color: var(--ink); }
.contact-value a:hover { color: var(--blue); }

.contact-availability {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9c3d4;
  padding-block: 56px 40px;
}
.footer-inner { text-align: center; }

.footer-name { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.footer-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-block: 26px 22px;
}
.footer-nav a { font-size: 14px; font-weight: 500; color: #b9c3d4; }
.footer-nav a:hover { color: #fff; }

.footer-copy { font-size: 13px; color: #7a8aa0; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; margin-inline: auto; }
  .section-layout { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .fico-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .experience-roles { grid-template-columns: 1fr; }
  .experience-role-block { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 26px; }
  .experience-role-block:last-child { border-bottom: 0; }
  .why-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) {
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 20px 20px;
    display: none;
  }
  .nav-links.is-open { display: block; }

  .nav-links ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 13px 14px; font-size: 15px; }
  .nav-link.is-active::after { display: none; }
  .nav-link--cta { margin-left: 0; margin-top: 8px; text-align: center; }

  .snapshot-grid { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
  .snapshot + .section { padding-top: clamp(72px, 10vw, 112px); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .brand-name { display: none; }
  .timeline-item { padding-left: 60px; }
  .timeline::before { left: 18px; }
  .timeline-marker { width: 34px; height: 34px; left: 4px; font-size: 11px; }
  .flow-step { padding-left: 60px; }
  .flow::before { left: 23px; }
  .flow-num { width: 42px; height: 42px; font-size: 14px; }
  .roadmap > li { padding-left: 30px; gap: 14px; }
  .experience-head { padding: 26px 22px; }
  .experience-role-block { padding: 24px 22px; }
  .experience-note { padding: 16px 22px; }
}

@media (max-width: 400px) {
  .snapshot-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}