:root {
      --bg: #f7f5ef;
      --bg-soft: #ffffff;
      --text: #161616;
      --muted: #666666;
      --line: rgba(22, 22, 22, 0.12);
      --dark: #111827;
      --dark-soft: #1f2937;
      --accent: #2563eb;
      --accent-dark: #1d4ed8;
      --card-radius: 24px;
      --shadow: 0 24px 70px rgba(17, 24, 39, 0.08);
      --max: 1160px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

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

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

    .container {
      width: min(var(--max), calc(100% - 40px));
      margin: 0 auto;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(18px);
      background: rgba(247, 245, 239, 0.78);
      border-bottom: 1px solid var(--line);
    }

    .nav {
      height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .logo {
      font-weight: 800;
      letter-spacing: -0.04em;
      font-size: 20px;
    }

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

    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 20px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 750;
      transition: 0.22s ease;
      border: 1px solid transparent;
      cursor: pointer;
      white-space: nowrap;
    }

    .btn-primary {
      background: var(--accent);
      color: #fff;
      box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
    }

    .btn-primary:hover {
      background: var(--accent-dark);
      transform: translateY(-2px);
    }

    .btn-secondary {
      background: #fff;
      color: var(--text);
      border-color: var(--line);
    }

    .btn-secondary:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .hero {
      padding: 82px 0 60px;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 42px;
      align-items: center;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 22px;
      padding: 8px 14px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.58);
      color: var(--muted);
      font-size: 14px;
      font-weight: 650;
    }

    .dot {
      width: 8px;
      height: 8px;
      background: #22c55e;
      border-radius: 50%;
      box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
    }

    h1 {
      max-width: 760px;
      font-size: clamp(44px, 7vw, 78px);
      line-height: 0.95;
      letter-spacing: -0.07em;
      margin-bottom: 26px;
    }

    .hero-text {
      max-width: 650px;
      color: var(--muted);
      font-size: 19px;
      margin-bottom: 30px;
    }

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

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      max-width: 620px;
      gap: 12px;
      margin-top: 0;
    }

    .stat {
      padding: 18px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.64);
      border: 1px solid var(--line);
    }

    .stat strong {
      display: block;
      font-size: 28px;
      letter-spacing: -0.05em;
      line-height: 1;
      margin-bottom: 6px;
    }

    .stat span {
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
    }

    .profile-card {
      position: relative;
      padding: 18px;
      border-radius: 34px;
      background: #fff;
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .profile-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 36%);
      pointer-events: none;
    }

    .profile-image {
      position: relative;
      min-height: 430px;
      border-radius: 24px;
      overflow: hidden;
      background: linear-gradient(135deg, #e5e7eb, #f8fafc);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #9ca3af;
      text-align: center;
      padding: 30px;
      font-weight: 750;
    }

    .profile-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      inset: 0;
    }

    .profile-info {
      position: relative;
      margin-top: 16px;
      display: grid;
      gap: 10px;
    }

    .mini-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 14px;
      border-radius: 16px;
      background: #f9fafb;
      border: 1px solid rgba(17, 24, 39, 0.08);
      font-size: 14px;
    }

    .mini-row span:first-child {
      color: var(--muted);
    }

    .mini-row span:last-child {
      font-weight: 750;
      text-align: right;
    }

    section {
      padding: 76px 0;
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      gap: 26px;
      align-items: end;
      margin-bottom: 34px;
    }

    .section-kicker {
      color: var(--accent);
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      font-weight: 850;
      margin-bottom: 10px;
    }

    h2 {
      font-size: clamp(32px, 4vw, 48px);
      line-height: 1.04;
      letter-spacing: -0.055em;
    }

    .section-desc {
      max-width: 470px;
      color: var(--muted);
      font-size: 16px;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .project-card {
      position: relative;
      border-radius: var(--card-radius);
      overflow: hidden;
      background: #fff;
      border: 1px solid var(--line);
      transition: 0.22s ease;
    }

    .project-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow);
    }

    .project-thumb {
      aspect-ratio: 16 / 10;
      background: linear-gradient(135deg, #e5e7eb, #f9fafb);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #9ca3af;
      font-weight: 800;
      font-size: 14px;
      text-align: center;
      overflow: hidden;
    }

    .project-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .project-body {
      padding: 22px;
    }

    .project-type {
      display: inline-flex;
      margin-bottom: 10px;
      padding: 5px 10px;
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.09);
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
    }

    .project-body h3 {
      font-size: 22px;
      letter-spacing: -0.04em;
      margin-bottom: 8px;
    }

    .project-body p {
      color: var(--muted);
      font-size: 14px;
      min-height: 66px;
      margin-bottom: 18px;
    }

    .project-link {
      color: var(--text);
      font-weight: 800;
      font-size: 14px;
    }

    .project-link:hover {
      color: var(--accent);
    }

    .cards-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .service-card,
    .skill-group,
    .timeline-item {
      padding: 26px;
      border-radius: var(--card-radius);
      background: #fff;
      border: 1px solid var(--line);
    }

    .service-card .icon {
      width: 46px;
      height: 46px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--dark);
      color: #fff;
      font-weight: 900;
      margin-bottom: 20px;
    }

    .service-card h3,
    .skill-group h3 {
      font-size: 20px;
      letter-spacing: -0.035em;
      margin-bottom: 10px;
    }

    .service-card p,
    .timeline-item p {
      color: var(--muted);
      font-size: 15px;
    }

    .about-box {
      display: grid;
      grid-template-columns: 0.88fr 1.12fr;
      gap: 24px;
      align-items: stretch;
    }

    .about-highlight {
      padding: 34px;
      border-radius: 32px;
      background: var(--dark);
      color: #fff;
      min-height: 320px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .about-highlight h3 {
      font-size: 34px;
      line-height: 1.02;
      letter-spacing: -0.05em;
      margin-bottom: 18px;
    }

    .about-highlight p {
      color: rgba(255, 255, 255, 0.72);
    }

    .about-text {
      padding: 34px;
      border-radius: 32px;
      background: #fff;
      border: 1px solid var(--line);
    }

    .about-text p {
      color: var(--muted);
      margin-bottom: 16px;
      font-size: 16px;
    }

    .about-text p:last-child {
      margin-bottom: 0;
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 16px;
    }

    .tag {
      padding: 8px 12px;
      border-radius: 999px;
      background: #f3f4f6;
      color: #374151;
      font-size: 13px;
      font-weight: 700;
    }


    .experience-note {
      display: grid;
      gap: 8px;
      margin: 4px 0 22px;
      padding: 20px 22px;
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.72));
      border: 1px solid rgba(37, 99, 235, 0.16);
    }

    .experience-note-strong {
      grid-template-columns: 42px 1fr;
      align-items: start;
      box-shadow: 0 18px 45px rgba(37, 99, 235, 0.08);
    }

    .experience-note-icon {
      width: 42px;
      height: 42px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: var(--accent);
      color: #fff;
      font-weight: 900;
      font-size: 20px;
    }

    .experience-note strong {
      color: var(--text);
      font-size: 15px;
      letter-spacing: -0.02em;
    }

    .experience-note p {
      color: var(--muted);
      max-width: 980px;
      font-size: 15px;
      margin: 0;
    }

    .timeline {
      display: grid;
      gap: 16px;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 210px 1fr;
      gap: 20px;
      align-items: start;
    }

    .timeline-date {
      color: var(--accent);
      padding-top: 2px;
      display: grid;
      gap: 6px;
      align-content: start;
    }

    .timeline-date strong {
      font-size: 14px;
      font-weight: 900;
      letter-spacing: 0.01em;
    }

    .timeline-date span {
      width: fit-content;
      max-width: 170px;
      padding: 6px 10px;
      border-radius: 999px;
      background: #eef3ff;
      color: #2557d6;
      border: 1px solid rgba(37, 99, 235, 0.14);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.25;
    }

    .timeline-content {
      min-width: 0;
    }

    .timeline-topline {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 4px;
    }

    .timeline-item h3 {
      font-size: 21px;
      letter-spacing: -0.035em;
      margin-bottom: 0;
    }

    .timeline-item h4 {
      color: var(--muted);
      font-size: 14px;
      font-weight: 750;
      margin-bottom: 12px;
    }

    .timeline-item p {
      color: var(--muted);
    }

    .timeline-context {
      margin: 0 0 12px;
      padding: 10px 12px;
      border-radius: 14px;
      background: #f7f8fb;
      border: 1px solid var(--border);
      color: #374151;
      font-size: 13px;
      font-weight: 750;
      line-height: 1.5;
    }

    .timeline-badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
      flex: 0 0 auto;
    }

    .timeline-badges span {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 0 10px;
      border-radius: 999px;
      background: #f3f6ff;
      border: 1px solid rgba(37, 99, 235, 0.16);
      color: var(--accent);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .contact-section {
      padding-bottom: 38px;
    }

    .contact-box {
      padding: 42px;
      border-radius: 34px;
      background: var(--dark);
      color: #fff;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 28px;
      align-items: center;
      overflow: hidden;
      position: relative;
    }

    .contact-box::after {
      content: "";
      position: absolute;
      width: 340px;
      height: 340px;
      border-radius: 50%;
      background: rgba(37, 99, 235, 0.35);
      right: -120px;
      top: -140px;
      filter: blur(10px);
    }

    .contact-content {
      position: relative;
      z-index: 1;
    }

    .contact-content h2 {
      margin-bottom: 14px;
    }

    .contact-content p {
      color: rgba(255, 255, 255, 0.72);
      max-width: 610px;
    }

    .contact-actions {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: flex-end;
    }

    .contact-actions .btn-secondary {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.18);
    }



    .social-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 26px;
      margin-bottom: 34px;
    }

    .social-link {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      min-height: 46px;
      padding: 0 16px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.68);
      border: 1px solid var(--line);
      color: var(--text);
      font-size: 14px;
      font-weight: 750;
      transition: 0.22s ease;
    }

    .social-link:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .social-link svg {
      width: 19px;
      height: 19px;
      flex: 0 0 auto;
    }

    .contact-list {
      display: grid;
      gap: 12px;
      margin-top: 22px;
      color: rgba(255, 255, 255, 0.82);
      font-size: 15px;
      font-weight: 650;
    }

    .contact-list a {
      color: #fff;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 4px;
    }

    .contact-socials {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 12px;
      min-width: 260px;
    }

    .contact-socials .social-link {
      justify-content: flex-start;
      width: 100%;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.18);
    }



    .fixed-contact-menu {
      position: fixed;
      right: 22px;
      top: 50%;
      transform: translateY(-50%);
      z-index: 120;
      display: grid;
      gap: 10px;
    }

    .fixed-contact-link {
      display: inline-flex;
      align-items: center;
      justify-content: flex-start;
      gap: 10px;
      min-width: 132px;
      min-height: 46px;
      padding: 0 15px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.9);
      border: 1px solid rgba(22, 22, 22, 0.12);
      box-shadow: 0 14px 38px rgba(17, 24, 39, 0.11);
      backdrop-filter: blur(16px);
      color: var(--text);
      font-size: 13px;
      font-weight: 800;
      transition: 0.22s ease;
    }

    .fixed-contact-link:hover {
      transform: translateX(-4px);
      box-shadow: 0 18px 46px rgba(17, 24, 39, 0.16);
    }

    .fixed-contact-link svg {
      width: 19px;
      height: 19px;
      flex: 0 0 auto;
    }

    .fixed-whatsapp { color: #128c4a; }
    .fixed-telegram { color: #229ed9; }
    .fixed-viber { color: #7360f2; }
    .fixed-instagram { color: #c13584; }
    .fixed-email { color: #2563eb; }

    .footer {
      padding: 26px 0 42px;
      color: var(--muted);
      font-size: 14px;
    }

    .footer .container {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid var(--line);
      padding-top: 24px;
    }

    @media (max-width: 980px) {
      .nav-links {
        display: none;
      }

      .fixed-contact-menu {
        right: 14px;
      }

      .fixed-contact-link {
        min-width: 46px;
        width: 46px;
        padding: 0;
        justify-content: center;
      }

      .fixed-contact-link span {
        display: none;
      }

      .hero-grid,
      .about-box,
      .contact-box {
        grid-template-columns: 1fr;
      }

      .projects-grid,
      .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .contact-actions {
        justify-content: flex-start;
      }
    }

    @media (max-width: 720px) {
      body {
        padding-bottom: 84px;
      }

      .fixed-contact-menu {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 14px;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid rgba(22, 22, 22, 0.12);
        box-shadow: 0 18px 55px rgba(17, 24, 39, 0.18);
        backdrop-filter: blur(18px);
      }

      .fixed-contact-link {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        padding: 0;
        background: #fff;
        border-color: rgba(22, 22, 22, 0.1);
        box-shadow: none;
      }

      .fixed-contact-link:hover {
        transform: translateY(-2px);
      }

      .fixed-contact-link span {
        display: none;
      }

      .fixed-telegram,
      .fixed-viber {
        display: none;
      }

      .container {
        width: min(100% - 28px, var(--max));
      }

      .nav {
        height: 68px;
        gap: 12px;
      }

      .logo {
        font-size: 18px;
      }

      .site-header .btn {
        min-height: 40px;
        padding: 0 14px;
        font-size: 13px;
      }

      .hero {
        padding: 54px 0 40px;
      }

      .hero-stats,
      .projects-grid,
      .cards-grid {
        grid-template-columns: 1fr;
      }

      .hero-actions,
      .social-links,
      .contact-actions {
        display: grid;
        grid-template-columns: 1fr;
      }

      .hero-actions .btn,
      .social-link,
      .contact-actions .btn {
        width: 100%;
      }

      h1 {
        font-size: clamp(38px, 13vw, 52px);
        letter-spacing: -0.06em;
      }

      .hero-text {
        font-size: 17px;
      }

      .section-head {
        display: block;
      }

      .section-desc {
        margin-top: 14px;
      }

      .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .timeline-topline {
        display: grid;
        gap: 10px;
      }

      .timeline-badges {
        justify-content: flex-start;
      }

      .experience-note {
        padding: 18px;
        border-radius: 20px;
      }

      .experience-note-strong {
        grid-template-columns: 1fr;
      }

      .timeline-date span {
        max-width: 100%;
      }

      .profile-image {
        min-height: 330px;
      }

      .contact-box {
        padding: 30px 22px;
        border-radius: 26px;
      }

      .contact-socials {
        min-width: 0;
      }

      .footer .container {
        flex-direction: column;
      }
    }

/* ===== Polished portfolio case additions ===== */
.projects-section {
  padding-top: 88px;
}

.projects-head {
  margin-bottom: 24px;
}

.ownership-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: center;
  margin: 0 0 30px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 10%, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, #111827 0%, #172033 58%, #0f172a 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 26px 72px rgba(17, 24, 39, 0.16);
}

.ownership-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.ownership-copy,
.process-steps {
  position: relative;
  z-index: 1;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 0 6px rgba(96,165,250,0.14);
}

.ownership-copy h3 {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.ownership-copy p {
  max-width: 760px;
  color: rgba(255,255,255,0.72);
  font-size: 16px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.process-steps span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.11);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 760;
}

.enhanced-projects {
  align-items: stretch;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.case-card .project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.case-card .project-type {
  margin-bottom: 0;
}

.project-scope {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 850;
}

.case-card .project-body h3 {
  margin-bottom: 8px;
}

.project-intro {
  min-height: auto !important;
  margin-bottom: 16px !important;
  color: var(--muted);
  font-size: 14px;
}

.role-box {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.role-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}

.role-box p {
  min-height: auto !important;
  margin: 0 !important;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.project-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.075);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 820;
}

.case-card .project-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding-top: 2px;
}

@media (max-width: 980px) {
  .ownership-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .projects-section {
    padding-top: 58px;
  }

  .ownership-panel {
    padding: 26px 20px;
    border-radius: 26px;
    margin-bottom: 22px;
  }

  .ownership-panel::before {
    border-radius: 25px;
  }

  .ownership-copy h3 {
    font-size: 30px;
  }

  .ownership-copy p {
    font-size: 15px;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .process-steps span {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 12px;
  }

  .case-card .project-body {
    padding: 20px;
  }

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .project-scope {
    font-size: 10.5px;
  }

  .role-box {
    padding: 13px;
    border-radius: 16px;
  }
}

/* ===== Strategic positioning additions ===== */
:root { --border: rgba(17, 24, 39, 0.10); }

.service-card-featured {
  background:
    radial-gradient(circle at 95% 0%, rgba(37, 99, 235, 0.10), transparent 36%),
    #fff;
}

.mindset-section {
  padding-top: 82px;
}

.value-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 22px;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 6%, rgba(37, 99, 235, 0.15), transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.06);
}

.light-label {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.14);
  color: var(--accent);
}

.light-label::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(37,99,235,0.12);
}

.value-hero h3 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.value-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.value-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.value-proof div {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.value-proof strong {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.value-proof span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.value-card {
  padding: 24px;
  border-radius: var(--card-radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: 0.22s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.value-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.proof-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.proof-strip > div {
  padding: 28px;
  border-radius: 28px;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.proof-strip > div::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -110px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.28);
}

.proof-strip h3,
.proof-strip p {
  position: relative;
  z-index: 1;
}

.proof-strip h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.proof-strip p {
  color: rgba(255,255,255,0.74);
  font-size: 15px;
}

.skills-expanded .skill-group {
  min-height: 100%;
}

.challenge-section {
  padding-top: 20px;
}

.challenge-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 38px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 0%, rgba(37, 99, 235, 0.16), transparent 36%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.06);
}

.challenge-box h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.challenge-box p {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 980px) {
  .value-hero,
  .proof-strip,
  .challenge-box {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .challenge-box .btn {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  .mindset-section {
    padding-top: 58px;
  }

  .value-hero,
  .challenge-box {
    padding: 26px 20px;
    border-radius: 26px;
  }

  .value-grid,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .value-proof div,
  .value-card {
    padding: 20px;
  }

  .proof-strip > div {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .challenge-box .btn {
    width: 100%;
  }
}

/* ===== Hero repositioning update ===== */
.hero h1 {
  max-width: 900px;
}

.hero-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin: -8px 0 28px;
}

.hero-focus span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 22, 22, 0.10);
  color: #374151;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.04);
}

.hero-focus span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

@media (max-width: 720px) {
  .hero-focus {
    display: grid;
    grid-template-columns: 1fr;
    margin: -4px 0 24px;
  }

  .hero-focus span {
    width: 100%;
    justify-content: flex-start;
    min-height: 40px;
  }
}

/* ===== Dark / light theme switcher ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.theme-icon {
  width: 19px;
  height: 19px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-icon-moon {
  position: absolute;
  opacity: 0;
  transform: scale(0.8) rotate(-18deg);
}

html[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: scale(0.8) rotate(18deg);
}

html[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Base mode is dark. Light mode keeps the original palette. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #111827;
  --text: #f8fafc;
  --muted: #a7b0c0;
  --line: rgba(255, 255, 255, 0.12);
  --dark: #eef2ff;
  --dark-soft: #cbd5e1;
  --accent: #60a5fa;
  --accent-dark: #3b82f6;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.20), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(96, 165, 250, 0.10), transparent 34%),
    var(--bg);
  color: var(--text);
}

html[data-theme="dark"] .site-header {
  background: rgba(8, 11, 18, 0.78);
}

html[data-theme="dark"] .nav-links,
html[data-theme="dark"] .hero-text,
html[data-theme="dark"] .section-desc,
html[data-theme="dark"] .project-body p,
html[data-theme="dark"] .service-card p,
html[data-theme="dark"] .about-text,
html[data-theme="dark"] .timeline p,
html[data-theme="dark"] .skill-group li,
html[data-theme="dark"] .contact-content p,
html[data-theme="dark"] .contact-list,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .value-card p,
html[data-theme="dark"] .challenge-box p,
html[data-theme="dark"] .ownership-copy p,
html[data-theme="dark"] .role-box p,
html[data-theme="dark"] .exp-note p,
html[data-theme="dark"] .exp-mode-note {
  color: var(--muted);
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .skill-group,
html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .ownership-panel,
html[data-theme="dark"] .role-box,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .challenge-box,
html[data-theme="dark"] .exp-note,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .fixed-contact-link {
  background: rgba(17, 24, 39, 0.78);
  border-color: var(--line);
  color: var(--text);
}

html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .skill-group,
html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .ownership-panel,
html[data-theme="dark"] .value-card,
html[data-theme="dark"] .challenge-box,
html[data-theme="dark"] .exp-note {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .project-thumb,
html[data-theme="dark"] .profile-image,
html[data-theme="dark"] .process-steps span,
html[data-theme="dark"] .project-tags span,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .exp-badge,
html[data-theme="dark"] .project-type,
html[data-theme="dark"] .project-scope,
html[data-theme="dark"] .hero-focus span,
html[data-theme="dark"] .contact-socials .social-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}

html[data-theme="dark"] .profile-card::before,
html[data-theme="dark"] .ownership-panel,
html[data-theme="dark"] .challenge-box,
html[data-theme="dark"] .value-hero {
  background:
    radial-gradient(circle at 88% 0%, rgba(96, 165, 250, 0.18), transparent 38%),
    rgba(17, 24, 39, 0.78);
}

html[data-theme="dark"] .project-link,
html[data-theme="dark"] .section-kicker,
html[data-theme="dark"] .timeline-date,
html[data-theme="dark"] .logo span,
html[data-theme="dark"] .contact-list a {
  color: var(--accent);
}

html[data-theme="dark"] .value-card > span,
html[data-theme="dark"] .proof-strip > div,
html[data-theme="dark"] .contact-box {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
}

html[data-theme="dark"] .contact-box::after,
html[data-theme="dark"] .proof-strip > div::after {
  background: rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] .fixed-contact-menu {
  background: transparent;
}

html[data-theme="dark"] .fixed-contact-link:hover {
  background: rgba(96, 165, 250, 0.16);
}

@media (max-width: 980px) {
  .nav-actions {
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .nav-actions {
    margin-left: auto;
  }

  .theme-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .theme-icon {
    width: 18px;
    height: 18px;
  }
}

/* ===== Professional dark theme polish fixes ===== */
html[data-theme="dark"] {
  --dark-panel: rgba(15, 23, 42, 0.86);
  --dark-panel-2: rgba(15, 31, 58, 0.88);
  --dark-panel-3: rgba(10, 18, 32, 0.92);
  --blue-soft: rgba(96, 165, 250, 0.14);
  --blue-soft-2: rgba(59, 130, 246, 0.22);
  --blue-border: rgba(96, 165, 250, 0.28);
  --blue-text: #bfdbfe;
}

html[data-theme="dark"] .profile-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(10, 18, 32, 0.96));
  border-color: rgba(96, 165, 250, 0.22);
}

html[data-theme="dark"] .profile-info {
  padding-top: 2px;
}

html[data-theme="dark"] .mini-row {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(15, 23, 42, 0.86));
  border-color: rgba(96, 165, 250, 0.22);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

html[data-theme="dark"] .mini-row span:first-child {
  color: #93c5fd;
}

html[data-theme="dark"] .mini-row span:last-child {
  color: #f8fafc;
}

html[data-theme="dark"] .service-card .icon,
html[data-theme="dark"] .value-card > span {
  background: linear-gradient(135deg, rgba(96,165,250,0.95), rgba(37,99,235,0.78));
  color: #06142b;
  border: 1px solid rgba(191,219,254,0.45);
  box-shadow: 0 14px 28px rgba(37,99,235,0.22);
}

html[data-theme="dark"] .service-card,
html[data-theme="dark"] .service-card-featured,
html[data-theme="dark"] .skill-group,
html[data-theme="dark"] .value-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(13, 22, 39, 0.92));
  border-color: rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] .service-card:hover,
html[data-theme="dark"] .skill-group:hover,
html[data-theme="dark"] .value-card:hover {
  border-color: rgba(96, 165, 250, 0.34);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28), 0 0 0 1px rgba(96,165,250,0.08) inset;
}

html[data-theme="dark"] .tag,
html[data-theme="dark"] .skill-tags span,
html[data-theme="dark"] .skill-tags .tag {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(37, 99, 235, 0.10));
  border: 1px solid rgba(96, 165, 250, 0.26);
  color: #dbeafe;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

html[data-theme="dark"] .about-highlight {
  background: radial-gradient(circle at 90% 0%, rgba(96,165,250,0.22), transparent 36%), linear-gradient(135deg, #0f172a, #111827);
  border: 1px solid rgba(96, 165, 250, 0.20);
  color: #f8fafc;
}

html[data-theme="dark"] .about-highlight h3,
html[data-theme="dark"] .about-highlight p {
  color: #f8fafc;
}

html[data-theme="dark"] .about-highlight p {
  color: #bfdbfe;
}

html[data-theme="dark"] .about-text {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(13, 22, 39, 0.92));
  border-color: rgba(96, 165, 250, 0.18);
  color: #dbeafe;
}

html[data-theme="dark"] .about-text p {
  color: #cbd5e1;
}

html[data-theme="dark"] .value-hero {
  background: radial-gradient(circle at 95% 0%, rgba(96,165,250,0.18), transparent 40%), linear-gradient(135deg, rgba(15,23,42,0.96), rgba(13,22,39,0.94));
  border-color: rgba(96, 165, 250, 0.22);
}

html[data-theme="dark"] .value-proof div {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.16), rgba(15, 23, 42, 0.88));
  border-color: rgba(96, 165, 250, 0.26);
  color: #f8fafc;
}

html[data-theme="dark"] .value-proof strong {
  color: #f8fafc;
}

html[data-theme="dark"] .value-proof span {
  color: #bfdbfe;
}

html[data-theme="dark"] .experience-note,
html[data-theme="dark"] .experience-note-strong {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.92));
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.20);
}

html[data-theme="dark"] .experience-note strong {
  color: #f8fafc;
}

html[data-theme="dark"] .experience-note p {
  color: #cbd5e1;
}

html[data-theme="dark"] .experience-note-icon {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #06142b;
}

html[data-theme="dark"] .timeline-item {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(13, 22, 39, 0.94));
  border-color: rgba(96, 165, 250, 0.18);
}

html[data-theme="dark"] .timeline-date span,
html[data-theme="dark"] .timeline-badges span,
html[data-theme="dark"] .exp-badge {
  background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(37,99,235,0.10));
  border: 1px solid rgba(96,165,250,0.28);
  color: #dbeafe;
}

html[data-theme="dark"] .timeline-context {
  background: linear-gradient(135deg, rgba(96,165,250,0.14), rgba(15,23,42,0.88));
  border: 1px solid rgba(96,165,250,0.24);
  color: #e2e8f0;
}

html[data-theme="dark"] .timeline-item h3,
html[data-theme="dark"] .service-card h3,
html[data-theme="dark"] .skill-group h3,
html[data-theme="dark"] .value-card h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .timeline-item h4 {
  color: #bfdbfe;
}

html[data-theme="dark"] .timeline-item p {
  color: #cbd5e1;
}

html[data-theme="dark"] .proof-strip > div,
html[data-theme="dark"] .contact-box {
  background: radial-gradient(circle at 94% 0%, rgba(96,165,250,0.20), transparent 36%), linear-gradient(135deg, #0f172a, #111827);
  border: 1px solid rgba(96,165,250,0.18);
}

html[data-theme="dark"] .challenge-box {
  background: radial-gradient(circle at 90% 0%, rgba(96,165,250,0.20), transparent 38%), linear-gradient(135deg, rgba(17,24,39,0.94), rgba(13,22,39,0.94));
  border-color: rgba(96,165,250,0.20);
}

html[data-theme="dark"] .contact-socials .social-link,
html[data-theme="dark"] .hero-focus span,
html[data-theme="dark"] .project-tags span,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .project-type,
html[data-theme="dark"] .project-scope {
  background: linear-gradient(135deg, rgba(96,165,250,0.14), rgba(37,99,235,0.08));
  border-color: rgba(96,165,250,0.24);
  color: #dbeafe;
}

html[data-theme="dark"] .btn-secondary {
  background: rgba(15, 23, 42, 0.76);
  border-color: rgba(96,165,250,0.22);
  color: #f8fafc;
}

html[data-theme="dark"] .btn-secondary:hover {
  background: rgba(96,165,250,0.14);
  border-color: rgba(96,165,250,0.34);
}

html[data-theme="dark"] ::selection {
  background: rgba(96,165,250,0.35);
  color: #fff;
}

/* fix typo fallback for timeline context border */
.timeline-context {
  border-color: var(--line);
}

/* ===== Mobile professional polish v2 ===== */
.fixed-linkedin { color: #0a66c2; }

section { scroll-margin-top: 92px; }

.about-story {
  display: grid;
  gap: 18px;
}

.about-story-block {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
}

.about-story-lead {
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.10), transparent 34%),
    #fff;
}

.about-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-story h3,
.about-story h4 {
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.about-story h3 {
  max-width: 680px;
  font-size: clamp(28px, 3vw, 38px);
}

.about-story h4 {
  font-size: 22px;
}

.about-story p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

html[data-theme="dark"] .about-story-block {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.88), rgba(13, 22, 39, 0.94));
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

html[data-theme="dark"] .about-story-lead {
  background:
    radial-gradient(circle at 92% 0%, rgba(96, 165, 250, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.92), rgba(13, 22, 39, 0.94));
}

html[data-theme="dark"] .about-label {
  background: linear-gradient(135deg, rgba(96,165,250,0.18), rgba(37,99,235,0.10));
  border-color: rgba(96,165,250,0.26);
  color: #bfdbfe;
}

html[data-theme="dark"] .about-story h3,
html[data-theme="dark"] .about-story h4 {
  color: #f8fafc;
}

html[data-theme="dark"] .about-story p {
  color: #cbd5e1;
}

/* Better dark glass instead of pale form-looking rows */
html[data-theme="dark"] .profile-info {
  display: grid;
  gap: 10px;
}

html[data-theme="dark"] .mini-row {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(96, 165, 250, 0.10);
  border-color: rgba(96, 165, 250, 0.22);
}

html[data-theme="dark"] .process-steps span,
html[data-theme="dark"] .skill-tags span,
html[data-theme="dark"] .project-tags span,
html[data-theme="dark"] .hero-focus span,
html[data-theme="dark"] .timeline-date span,
html[data-theme="dark"] .timeline-badges span,
html[data-theme="dark"] .exp-badge,
html[data-theme="dark"] .project-type,
html[data-theme="dark"] .project-scope {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.17), rgba(37, 99, 235, 0.09));
  border-color: rgba(96, 165, 250, 0.28);
  color: #dbeafe;
}

html[data-theme="dark"] .service-card .icon {
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  border-color: rgba(191,219,254,0.38);
}

@media (max-width: 720px) {
  :root {
    --card-radius: 24px;
  }

  html {
    scroll-padding-top: 92px;
  }

  body {
    padding-bottom: 104px;
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    border-bottom-color: rgba(148, 163, 184, 0.18);
  }

  .nav {
    height: 76px;
  }

  .logo {
    font-size: 19px;
    letter-spacing: -0.055em;
  }

  .nav-actions {
    gap: 10px;
  }

  .theme-toggle {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .site-header .btn {
    min-height: 48px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero {
    padding: 42px 0 58px;
  }

  .hero-grid {
    gap: 28px;
  }

  .eyebrow {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.35;
    border-radius: 28px;
  }

  h1,
  .hero h1 {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(43px, 12.4vw, 56px);
    line-height: 0.98;
    letter-spacing: -0.072em;
  }

  .hero-text {
    margin-bottom: 24px;
    max-width: 100%;
    font-size: 18px;
    line-height: 1.7;
  }

  .hero-focus {
    gap: 10px;
    margin: 0 0 24px;
  }

  .hero-focus span {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions {
    gap: 12px;
    margin-bottom: 26px;
  }

  .hero-actions .btn {
    min-height: 52px;
    border-radius: 18px;
    font-size: 15px;
  }

  .hero-stats {
    gap: 12px;
  }

  .stat {
    padding: 24px 22px;
    border-radius: 24px;
  }

  .stat strong {
    font-size: 38px;
    margin-bottom: 12px;
  }

  .stat span {
    font-size: 16px;
    line-height: 1.2;
  }

  .profile-card {
    padding: 14px;
    border-radius: 28px;
  }

  .profile-image {
    min-height: auto;
    aspect-ratio: 4 / 4.8;
    border-radius: 22px;
  }

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

  .profile-info {
    margin-top: 14px;
    gap: 10px;
  }

  .mini-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: auto;
    padding: 13px 14px;
    border-radius: 16px;
    line-height: 1.25;
  }

  .mini-row span:first-child {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mini-row span:last-child {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  section,
  .mindset-section,
  .projects-section {
    padding-top: 64px;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-kicker {
    margin-bottom: 14px;
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  h2,
  .section-head h2 {
    font-size: clamp(38px, 10.2vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.06em;
  }

  .section-desc {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.65;
  }

  .ownership-panel,
  .value-hero,
  .challenge-box,
  .contact-box {
    padding: 26px 22px;
    border-radius: 28px;
  }

  .ownership-copy h3,
  .value-hero h3,
  .challenge-box h2 {
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.06;
    letter-spacing: -0.055em;
  }

  .ownership-copy p,
  .value-hero p,
  .challenge-box p {
    font-size: 16px;
    line-height: 1.72;
  }

  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .process-steps span {
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 18px;
    font-size: 14px;
  }

  .project-card,
  .service-card,
  .skill-group,
  .timeline-item,
  .value-card {
    border-radius: 26px;
  }

  .case-card .project-body,
  .service-card,
  .skill-group,
  .value-card {
    padding: 24px 22px;
  }

  .project-body h3,
  .service-card h3,
  .skill-group h3,
  .timeline-item h3,
  .value-card h3 {
    font-size: 25px;
    line-height: 1.1;
  }

  .project-body p,
  .service-card p,
  .value-card p,
  .timeline-item p {
    font-size: 16px;
    line-height: 1.65;
  }

  .project-topline,
  .timeline-badges,
  .project-tags,
  .skill-tags {
    gap: 8px;
  }

  .project-type,
  .project-scope,
  .project-tags span,
  .skill-tags span,
  .timeline-badges span,
  .timeline-date span,
  .exp-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
  }

  .role-box,
  .timeline-context {
    padding: 16px;
    border-radius: 18px;
  }

  .about-box {
    gap: 18px;
  }

  .about-highlight {
    min-height: auto;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .about-highlight h3 {
    font-size: clamp(34px, 9.4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.06em;
  }

  .about-highlight p {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.65;
  }

  .about-highlight .btn {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border-radius: 18px;
  }

  .about-story {
    gap: 14px;
  }

  .about-story-block {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .about-story h3 {
    font-size: clamp(27px, 7.4vw, 36px);
    line-height: 1.1;
  }

  .about-story h4 {
    font-size: 22px;
    line-height: 1.15;
  }

  .about-story p {
    font-size: 16px;
    line-height: 1.72;
  }

  .value-proof div {
    border-radius: 20px;
  }

  .experience-note {
    padding: 22px;
    border-radius: 26px;
  }

  .experience-note-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
  }

  .experience-note strong {
    font-size: 18px;
    line-height: 1.4;
  }

  .experience-note p {
    font-size: 16px;
    line-height: 1.7;
  }

  .timeline-item {
    padding: 24px 20px;
    gap: 18px;
  }

  .timeline-date {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .timeline-date strong {
    font-size: 18px;
  }

  .timeline-topline {
    gap: 14px;
  }

  .contact-content h2 {
    font-size: clamp(34px, 9vw, 44px);
  }

  .contact-socials {
    min-width: 0;
  }

  .footer .container {
    display: grid;
    gap: 8px;
    text-align: center;
  }

  .fixed-contact-menu {
    left: 50%;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: auto;
    max-width: calc(100% - 32px);
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(22px);
  }

  html[data-theme="light"] .fixed-contact-menu {
    background: rgba(255, 255, 255, 0.90);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  }

  .fixed-contact-link {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148, 163, 184, 0.24);
    color: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  }

  html[data-theme="light"] .fixed-contact-link {
    background: #fff;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.10);
  }

  .fixed-contact-link svg {
    width: 21px;
    height: 21px;
  }

  .fixed-contact-link span {
    display: none;
  }

  .fixed-telegram,
  .fixed-viber {
    display: none;
  }

  .fixed-email,
  .fixed-whatsapp,
  .fixed-linkedin,
  .fixed-instagram {
    display: inline-flex;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  h1,
  .hero h1 {
    font-size: 40px;
  }

  .site-header .btn {
    padding: 0 14px;
  }

  .fixed-contact-link {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}
