:root {
  --bg: #05080c;
  --panel: #070b0f;
  --panel-2: #090d12;
  --ink: #f7f8fa;
  --muted: #b2bac4;
  --line: rgba(205, 216, 228, .22);
  --card-line: rgba(171, 189, 211, .28);
  --blue: #116bff;
  --blue-2: #0057ff;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  color: var(--ink);
  background: #05080c;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 48.2% 51.8%;
  background: #05080c;
  overflow: hidden;
}

.identity-panel,
.content-panel { min-width: 0; }

.identity-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(30px, 3vw, 64px) clamp(34px, 4.7vw, 82px) 0;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 58%, rgba(17,107,255,.13), transparent 30%),
    linear-gradient(180deg, #080c11 0%, #070b0f 54%, #070b0f 100%);
}

.identity-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  min-height: 36px;
}
.mc-mark {
  text-decoration: none;
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 900;
  letter-spacing: -.065em;
}
.header-rule { display: none; }

.identity-copy {
  position: relative;
  z-index: 4;
  padding-top: clamp(58px, 7.6vh, 112px);
  max-width: 640px;
}
.roles {
  color: #f1f3f6;
  font-size: clamp(11px, .92vw, 16px);
  font-weight: 520;
  letter-spacing: .27em;
  margin-bottom: clamp(24px, 2.3vh, 38px);
  white-space: nowrap;
}
.roles span { margin: 0 clamp(8px, .85vw, 16px); color: #e8ebef; }

h1 {
  margin: 0;
  font-size: clamp(86px, 8.7vw, 168px);
  line-height: .72;
  letter-spacing: -.075em;
  font-weight: 930;
}
.accent-rule {
  width: clamp(68px, 6vw, 95px);
  height: clamp(7px, .62vw, 11px);
  margin-top: clamp(26px, 2.6vh, 42px);
  background: var(--blue);
}
.positioning {
  margin: clamp(22px, 2.3vh, 36px) 0 0;
  font-size: clamp(31px, 3.3vw, 60px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 400;
  white-space: nowrap;
}
.intro {
  margin: clamp(14px, 1.6vh, 24px) 0 0;
  color: #d1d7df;
  font-size: clamp(18px, 1.55vw, 30px);
  line-height: 1.38;
  letter-spacing: -.022em;
}

.mountain-wrap {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,11,15,1) 0%, rgba(7,11,15,.18) 20%, rgba(7,11,15,.02) 50%),
    url('/mountain-hero.png') center bottom / cover no-repeat;
}
.mountain-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #070b0f 0%, rgba(7,11,15,.05) 24%, rgba(7,11,15,0) 60%),
    radial-gradient(circle at 86% 54%, rgba(0,87,255,.38), transparent 26%);
}
.mountain { display: none; }

.content-panel {
  min-height: 100vh;
  padding: clamp(44px, 5vw, 88px) clamp(40px, 4vw, 80px) clamp(36px, 4vw, 72px);
  background:
    radial-gradient(circle at 92% 38%, rgba(0,87,255,.045), transparent 28%),
    #060a0e;
}
.content-inner {
  width: min(100%, 780px);
  margin: 0 auto;
}

.section-header,
.connect-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-rule {
  width: 37px;
  height: 6px;
  background: var(--blue);
}
.section-header h2,
.connect-header h2 {
  margin: 0;
  font-size: clamp(12px, .95vw, 17px);
  letter-spacing: .29em;
  font-weight: 780;
}

.project-stack {
  display: grid;
  gap: 18px;
  margin-top: clamp(24px, 2.7vh, 38px);
}
.project-card {
  position: relative;
  min-height: clamp(150px, 17vh, 205px);
  padding: clamp(26px, 2.1vw, 38px) clamp(75px, 6vw, 105px) clamp(26px, 2.1vw, 38px) clamp(30px, 2.5vw, 46px);
  display: grid;
  grid-template-columns: clamp(48px, 4vw, 68px) 1fr;
  gap: clamp(20px, 2vw, 32px);
  align-items: center;
  color: #f7f8fa;
  text-decoration: none;
  border-radius: 17px;
  border: 1px solid var(--card-line);
  background:
    radial-gradient(circle at 96% 70%, rgba(0,87,255,.95) 0%, rgba(0,87,255,.48) 9%, rgba(0,87,255,.11) 22%, transparent 38%),
    linear-gradient(145deg, #11161d 0%, #0b1016 64%, #0b1018 100%);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 64%, rgba(255,255,255,.03));
}
.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197,211,228,.48);
  box-shadow: 0 16px 38px rgba(0,0,0,.22);
}
.project-icon {
  width: clamp(48px, 4vw, 66px);
  height: clamp(48px, 4vw, 66px);
  color: var(--blue);
  position: relative;
  z-index: 2;
}
.project-icon svg { width: 100%; height: 100%; }
.project-icon.bars { width: clamp(48px, 3.7vw, 62px); height: clamp(48px, 3.7vw, 62px); }
.project-copy { min-width: 0; position: relative; z-index: 2; }
.project-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.project-title-row h3 {
  margin: 0;
  font-size: clamp(29px, 2.2vw, 41px);
  letter-spacing: -.045em;
  font-weight: 780;
}
.project-label { display: none; }
.project-copy strong {
  display: block;
  margin-top: clamp(18px, 1.8vh, 26px);
  font-size: clamp(18px, 1.35vw, 25px);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 430;
}
.project-copy p {
  margin: 8px 0 0;
  color: #cbd2dc;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.4;
}
.project-arrow {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 2.3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(48px, 4vw, 65px);
  height: clamp(48px, 4vw, 65px);
  border: 1px solid rgba(220,230,242,.58);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 270;
  transition: background .2s ease, border-color .2s ease;
}
.project-card:hover .project-arrow {
  background: rgba(0,87,255,.18);
  border-color: rgba(255,255,255,.86);
}

.connect-block {
  margin-top: clamp(32px, 4vh, 52px);
  padding-top: 0;
  border-top: 0;
}
.social-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.25fr 1fr 1.45fr;
  gap: 12px;
  margin-top: 24px;
}
.social-grid a {
  height: clamp(54px, 5.6vh, 70px);
  border: 1px solid rgba(183,198,217,.35);
  border-radius: 10px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: rgba(7,11,15,.5);
  font-size: clamp(12px, .85vw, 15px);
  font-weight: 560;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.social-grid a:hover {
  transform: translateY(-2px);
  background: rgba(17,24,33,.96);
  border-color: rgba(197,211,228,.62);
}
.social-icon {
  font-size: clamp(19px, 1.35vw, 26px);
  line-height: 1;
  min-width: 24px;
  text-align: center;
  font-weight: 840;
}
.social-icon.in,
.social-icon.tg { color: var(--blue); }
.social-icon.x { font-size: clamp(21px, 1.55vw, 28px); font-weight: 500; }
.social-icon.mail,
.social-icon.contact { color: #f2f4f7; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 1160px) {
  .page-shell { grid-template-columns: 46% 54%; }
  .identity-panel { padding-left: 34px; padding-right: 34px; }
  .content-panel { padding-left: 34px; padding-right: 34px; }
  .positioning { white-space: normal; }
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-grid a:last-child { grid-column: span 1; }
}

@media (max-width: 900px) {
  .page-shell { display: block; min-height: 100vh; }
  .identity-panel {
    min-height: 760px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 30px 28px 0;
  }
  .identity-copy { padding-top: 60px; }
  h1 { font-size: clamp(88px, 20vw, 142px); }
  .positioning { font-size: clamp(34px, 7.8vw, 52px); }
  .intro { font-size: 21px; }
  .mountain-wrap { height: 45%; }
  .content-panel { min-height: auto; padding: 46px 28px 52px; }
  .content-inner { width: 100%; }
  .project-card { min-height: 155px; }
}

@media (max-width: 610px) {
  .identity-panel { min-height: 690px; padding: 22px 18px 0; }
  .mc-mark { font-size: 22px; }
  .identity-copy { padding-top: 52px; }
  .roles { font-size: 9px; letter-spacing: .18em; margin-bottom: 21px; }
  .roles span { margin: 0 5px; }
  h1 { font-size: clamp(70px, 22vw, 96px); }
  .accent-rule { width: 60px; height: 6px; margin-top: 20px; }
  .positioning { margin-top: 19px; font-size: clamp(28px, 8.2vw, 40px); }
  .intro { font-size: 17px; line-height: 1.48; margin-top: 13px; }
  .desktop-br { display: none; }
  .mountain-wrap { height: 37%; }

  .content-panel { padding: 34px 18px 40px; }
  .section-header h2,
  .connect-header h2 { font-size: 10px; }
  .section-rule { width: 31px; height: 5px; }
  .project-stack { margin-top: 22px; gap: 12px; }
  .project-card {
    min-height: 138px;
    padding: 20px 52px 20px 18px;
    grid-template-columns: 38px 1fr;
    gap: 13px;
    border-radius: 14px;
  }
  .project-icon,
  .project-icon.bars { width: 36px; height: 36px; }
  .project-title-row h3 { font-size: 23px; }
  .project-copy strong { margin-top: 11px; font-size: 15px; }
  .project-copy p { font-size: 12px; }
  .project-arrow { width: 35px; height: 35px; right: 12px; font-size: 20px; }
  .connect-block { margin-top: 30px; }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .social-grid a { height: 54px; font-size: 12px; }
  .social-grid a:last-child { grid-column: 1 / -1; }
}
