/* =========================================================
   Bindushree Sanjeev Murthy — Portfolio
   Samsung-inspired palette & UI · bold editorial hero
   ========================================================= */
:root {
  --black: #000;
  --ink: #0b0b0d;
  --ink-2: #141418;
  --ink-3: #1d1d22;
  --white: #fff;
  --grey: #f4f4f4;
  --grey-2: #eaeaea;
  --line: #dcdcdc;
  --muted: #6b6b70;
  --muted-d: #9a9aa3;
  --blue: #1428a0;      /* Samsung brand blue */
  --blue-2: #2189ff;    /* Samsung link / highlight blue */
  --blue-3: #6fb6ff;
  --grad: linear-gradient(90deg, #2189ff 0%, #6fb6ff 50%, #a5d4ff 100%);
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --head: "Outfit", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--black); color: var(--white);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--head); margin: 0; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1240px, 100% - 64px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.blue { color: var(--blue); }
.blue-l { color: var(--blue-2); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--black);
  display: grid; place-content: center; gap: 22px; justify-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader__mark { font-family: var(--head); font-weight: 800; font-size: 64px; }
.loader__mark span { color: var(--blue-2); }
.loader__bar { width: 160px; height: 2px; background: #222; overflow: hidden; border-radius: 2px; }
.loader__bar i { display: block; height: 100%; width: 40%; background: var(--blue-2); animation: load 1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--blue-2); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }

/* ---------- buttons (Samsung pill) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 14px;
  letter-spacing: .02em; text-transform: uppercase; border: 1.5px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, box-shadow .3s, transform .3s var(--ease);
  will-change: transform;
}
.btn .arr { font-style: normal; transition: transform .3s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translate(3px, -3px); }
.btn--primary { background: var(--blue-2); color: #fff; box-shadow: 0 10px 30px -10px rgba(33, 137, 255, .7); }
.btn--primary:hover { background: #fff; color: var(--black); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .5); }
.btn--light { background: #fff; color: var(--black); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--black); border-color: #fff; }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn--lg { padding: 18px 32px; font-size: 15px; text-transform: none; }

.pill { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.pill--blue { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; gap: 32px; padding: 0 max(32px, calc((100% - 1240px) / 2));
  transition: background .4s, backdrop-filter .4s, border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(0,0,0,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: rgba(255,255,255,.08); }
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; letter-spacing: .06em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-2); color: #fff; font-size: 18px; }
.brand__word { font-size: 17px; }
.brand__word sup { font-size: 9px; color: var(--muted-d); }
.nav__links { margin-left: auto; display: flex; gap: 28px; font-family: var(--mono); font-size: 12.5px; }
.nav__links a { color: #b8b8c0; position: relative; padding: 6px 0; transition: color .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--blue-2); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__links a.is-active { color: var(--blue-2); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 17px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.96); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 32px;
  clip-path: circle(0 at calc(100% - 54px) 38px); transition: clip-path .7s var(--ease);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 54px) 38px); }
.mobile-menu a { font-family: var(--head); font-weight: 700; font-size: clamp(34px, 9vw, 54px); color: #fff; }
.mobile-menu a:hover { color: var(--blue-2); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 80px; display: flex; align-items: center; background: radial-gradient(1200px 600px at 75% 40%, #0a1430 0%, var(--black) 60%); overflow: hidden; }
.hero__grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #c9c9d1; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 0 rgba(33,137,255,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(33,137,255,.7); } 70% { box-shadow: 0 0 0 10px rgba(33,137,255,0); } 100% { box-shadow: 0 0 0 0 rgba(33,137,255,0); } }
.hero__title { font-size: clamp(52px, 7vw, 104px); font-weight: 800; line-height: .98; letter-spacing: -.035em; margin: 22px 0 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__title .line:nth-child(3) > span { transition-delay: .24s; }
.is-ready .hero__title .line > span { transform: none; }
.hero__title .accent { color: var(--blue-2); }
.hero__title b { color: var(--blue-2); }
.hero__lede { max-width: 520px; font-size: 18px; color: #a9a9b3; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 40px; }
.hero__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13px; color: #8d8d96; }
.hero__meta b { color: #fff; font-weight: 700; }

.hero__card {
  position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, #0d0d12, #060608); border: 1px solid rgba(255,255,255,.07);
  transform-style: preserve-3d; transition: transform .6s var(--ease);
  opacity: 0; translate: 0 40px; scale: .97;
}
.is-ready .hero__card { opacity: 1; translate: 0 0; scale: 1; transition: opacity 1.2s var(--ease) .3s, translate 1.2s var(--ease) .3s, scale 1.2s var(--ease) .3s, transform .6s var(--ease); }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 40%), rgba(33,137,255,.18), transparent 60%); pointer-events: none; z-index: 1; }
.hero__orb {
  position: absolute; left: 50%; top: 46%; width: 74%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4aa3ff 0%, #2189ff 30%, #1428a0 70%, #0a1450 100%);
  filter: drop-shadow(0 0 60px rgba(33,137,255,.55)) drop-shadow(0 0 140px rgba(20,40,160,.6));
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.04; } }
.hero__rings i { position: absolute; left: 50%; top: 46%; width: 74%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid rgba(111,182,255,.35); animation: ring 6s var(--ease) infinite; }
.hero__rings i:nth-child(2) { animation-delay: 2s; } .hero__rings i:nth-child(3) { animation-delay: 4s; }
@keyframes ring { from { scale: 1; opacity: .8; } to { scale: 1.55; opacity: 0; } }
.hero__portrait { position: absolute; left: 50%; bottom: 0; height: 90%; -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, #000 82%, transparent 100%); width: auto; max-width: none; translate: -62% 0; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); transition: transform .4s var(--ease); }
.hero__label {
  position: absolute; left: 6%; bottom: 5%; z-index: 3; width: 270px; padding: 16px 18px; border-radius: 16px;
  background: rgba(10,10,14,.6); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px;
}
.hero__label p { margin: 0; }
.hero__label .mono { color: var(--blue-2); font-size: 11px; margin-bottom: 6px; }
.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.92); color: var(--black); box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); font-size: 11.5px; line-height: 1.3;
}
.chip b { font-family: var(--head); font-size: 26px; color: var(--blue); letter-spacing: -.02em; }
.chip--a { top: 9%; left: 5%; }
.chip--b { top: 52%; right: 4%; }
.float { animation: float 5s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

/* ---------- ticker ---------- */
.ticker { background: var(--blue); overflow: hidden; padding: 18px 0; border-block: 1px solid rgba(255,255,255,.1); }
.ticker__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font-family: var(--head); font-weight: 700; font-size: 22px; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: "✦"; font-size: 14px; color: var(--blue-3); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- light sections ---------- */
.section--light { background: var(--white); color: var(--black); }
.section--grey { background: var(--grey); color: var(--black); }
section { position: relative; }
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.kicker--dark { color: var(--blue-2); }
.h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -.03em; margin-bottom: 26px; }
.h2--light { color: #fff; }
.sec-head { margin-bottom: 56px; }
.sec-head--center { text-align: center; }
.sec-head--row { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.sec-head__aside { max-width: 300px; }

/* ---------- stats ---------- */
.stats { padding: 96px 0 40px; }
.stats__grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 22px 0 0; border-right: 1px solid var(--line); padding-left: 22px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--head); font-size: clamp(30px, 3.2vw, 46px); font-weight: 700; letter-spacing: -.03em; display: block; color: var(--black); }
.stat p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ---------- about ---------- */
.about { padding: 100px 0 130px; }
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.about__photo { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5.4; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.about__photo.in img { transform: scale(1); }
.about__photo:hover img { transform: scale(1.04); }
.about__photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; display: grid; gap: 2px; }
.about__photo figcaption .mono { color: var(--blue); font-size: 11px; }
.about__copy > p { font-size: 18px; color: #3a3a40; }
.timeline { margin: 40px 0 32px; border-left: 2px solid var(--grey-2); padding-left: 28px; display: grid; gap: 26px; }
.timeline__item { position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -35px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-2); }
.timeline__item .mono { color: var(--blue); font-size: 11px; }
.timeline__item h4 { font-size: 21px; margin: 6px 0 4px; }
.timeline__item p { margin: 0; color: var(--muted); font-size: 15px; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- final year project ---------- */
.fyp { background: var(--black); padding: 140px 0 120px; overflow: clip; }
.fyp::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; background: radial-gradient(circle, rgba(20,40,160,.45), transparent 65%); pointer-events: none; }
.fyp__head { max-width: 920px; margin-bottom: 80px; }
.fyp__title { font-size: clamp(44px, 7vw, 100px); font-weight: 800; letter-spacing: -.04em; margin-bottom: 28px; }
.fyp__sub { font-size: 20px; color: #a9a9b3; max-width: 760px; }
.fyp__problem { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-bottom: 120px; }
.fyp__quote { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 44px; }
.fyp__quote .mono { color: var(--blue-2); }
.fyp__quote .big { font-family: var(--head); font-size: clamp(26px, 3vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 20px; }
.fyp__quote p:last-child { color: #a9a9b3; margin: 0; }
.fyp__quote em { color: #fff; font-style: normal; font-weight: 600; }
.fyp__facts { display: grid; gap: 24px; }
.fyp__facts div { background: linear-gradient(135deg, var(--blue) 0%, #0d1a6b 100%); border-radius: var(--radius); padding: 26px 30px; display: flex; align-items: center; gap: 22px; }
.fyp__facts b { font-family: var(--head); font-size: 52px; font-weight: 800; letter-spacing: -.03em; min-width: 104px; }
.fyp__facts > div > span { color: #c9d4ff; font-size: 15px; }

.dlsm { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 120px; }
.dlsm__sticky { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.dlsm__sticky h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; margin: 14px 0 36px; }
.dlsm__visual { position: relative; width: 240px; height: 240px; margin-bottom: 36px; }
.dlsm__ring { width: 100%; height: 100%; rotate: -90deg; }
.dlsm__ring circle { fill: none; stroke-width: 6; }
.dlsm__ring .track { stroke: rgba(255,255,255,.08); }
.dlsm__ring .bar { stroke: var(--blue-2); stroke-linecap: round; stroke-dasharray: 25 100; transition: stroke-dasharray .8s var(--ease); filter: drop-shadow(0 0 10px rgba(33,137,255,.7)); }
.dlsm__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--head); }
.dlsm__cur { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.dlsm__num small { color: var(--muted-d); font-size: 16px; }
.seq { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.seq__lvl { width: 100%; font-family: var(--mono); font-size: 11px; color: var(--muted-d); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.seq__item { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); font-weight: 600; font-size: 14px; color: #8d8d96; transition: all .5s var(--ease); }
.seq__item.on { background: var(--blue-2); border-color: var(--blue-2); color: #fff; box-shadow: 0 0 24px rgba(33,137,255,.5); }
.seq i { font-style: normal; color: var(--muted-d); }
.dlsm__steps { list-style: none; margin: 0; padding: 12vh 0 20vh; display: grid; gap: 22vh; }
.step { padding: 36px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid rgba(255,255,255,.06); opacity: .35; transform: scale(.96); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s; }
.step.on { opacity: 1; transform: none; border-color: rgba(33,137,255,.5); box-shadow: 0 30px 80px -40px rgba(33,137,255,.6); }
.step__n { font-family: var(--mono); color: var(--blue-2); font-size: 13px; }
.step h4 { font-size: 30px; margin: 12px 0 14px; }
.step p { color: #a9a9b3; margin: 0; font-size: 17px; }
.step em { color: #fff; }

.fyp__results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.result { background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease), border-color .4s; }
.result:hover { transform: translateY(-6px); border-color: rgba(33,137,255,.5); }
.result b { font-family: var(--head); font-size: 44px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.result > span { color: #a9a9b3; font-size: 14.5px; }
.result--wide { grid-column: span 4; background: linear-gradient(120deg, #0d1a6b 0%, var(--blue) 45%, #2189ff 100%); border: 0; padding: 40px 44px; }
.result--wide .mono { color: #c9d4ff; margin: 0; }
.result__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.result__pair b { font-size: clamp(56px, 8vw, 110px); display: block; }
.result__pair > div > span { color: #dbe3ff; font-size: 17px; }
.fyp__foot { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.stack .mono { color: var(--muted-d); }
.stack__chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.stack__chips span { padding: 8px 14px; border-radius: 999px; background: var(--ink-3); font-size: 13px; color: #d0d0d8; }
.fyp__links { text-align: right; }
.fyp__sup { color: var(--muted-d); font-size: 13px; margin: 14px 0 0; }

/* ---------- experience ---------- */
.experience { padding: 130px 0; }
.exp { display: grid; grid-template-columns: .8fr 1.2fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px -50px rgba(0,0,0,.3); }
.exp__side { padding: 48px; background: var(--black); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.exp__logo { width: 96px; height: 52px; display: grid; place-items: center; border-radius: 10px; background: #ff000f; font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: .04em; margin-bottom: 18px; }
.exp__side h3 { font-size: 32px; }
.exp__side .muted { color: var(--muted-d); margin: 0; }
.exp__side .mono { color: var(--blue-2); margin: 0; }
.link { margin-top: auto; padding-top: 24px; color: #fff; font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blue-2); }
.link:hover { color: var(--blue-2); }
.exp__body { padding: 48px; }
.exp__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 34px; }
.exp__kpis div { background: var(--grey); border-radius: 16px; padding: 18px; }
.exp__kpis b { font-family: var(--head); font-size: 34px; color: var(--blue); display: block; letter-spacing: -.03em; }
.exp__kpis span { font-size: 13px; color: var(--muted); }
.exp__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.exp__list li { padding-left: 26px; position: relative; color: #3a3a40; }
.exp__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--blue-2); }
.exp__list b { color: var(--black); }

/* ---------- tabs (Samsung style) ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: -20px auto 48px; padding: 6px; border-radius: 999px; background: var(--grey); width: fit-content; max-width: 100%; }
.tab { border: 0; background: transparent; padding: 12px 22px; border-radius: 999px; font: 600 14px var(--body); color: var(--muted); cursor: pointer; transition: all .3s var(--ease); }
.tab:hover { color: var(--black); }
.tab.is-active { background: var(--black); color: #fff; }
.section--grey .tabs { background: #fff; }

/* ---------- project cards ---------- */
.projects { padding: 130px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border-radius: var(--radius-lg); background: var(--grey); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s; }
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(20,40,160,.35); }
.card.is-hidden { display: none; }
.card__top { height: 170px; position: relative; display: flex; justify-content: space-between; align-items: start; padding: 20px; overflow: hidden; }
.card__top::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 120%, rgba(255,255,255,.3), transparent 50%); transition: transform .8s var(--ease); }
.card:hover .card__top::after { transform: scale(1.4); }
.card__top--a { background: linear-gradient(135deg, #000 0%, #1428a0 100%); }
.card__top--b { background: linear-gradient(135deg, #1428a0 0%, #2189ff 100%); }
.card__top--c { background: linear-gradient(135deg, #0b0b0d 0%, #3a3a40 100%); }
.card__top--d { background: linear-gradient(135deg, #2189ff 0%, #a5d4ff 100%); }
.card__top--e { background: linear-gradient(135deg, #0d1a6b 0%, #000 100%); }
.card__top--f { background: linear-gradient(135deg, #3a3a40 0%, #1428a0 100%); }
.card__tag { position: relative; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--black); font-size: 12px; font-weight: 700; }
.card__icon { position: relative; z-index: 1; font-size: 64px; line-height: 1; color: rgba(255,255,255,.85); align-self: end; transition: transform .6s var(--ease); }
.card:hover .card__icon { transform: rotate(-12deg) scale(1.1); }
.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__body .mono { color: var(--blue); font-size: 11px; }
.card__body h3 { font-size: 24px; margin: 10px 0 12px; letter-spacing: -.02em; }
.card__body p { color: #4a4a50; font-size: 15px; }
.card__kpis { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card__kpis li { padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 600; }

/* ---------- book ---------- */
.book { background: var(--black); padding: 130px 0; overflow: clip; }
.book::before { content: ""; position: absolute; left: -300px; top: 10%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(33,137,255,.18), transparent 65%); pointer-events: none; }
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; margin-bottom: 140px; }
.book__cover-wrap { display: grid; place-items: center; perspective: 1400px; }
.book3d { position: relative; width: min(340px, 80%); aspect-ratio: 2 / 3; transform: rotateY(-22deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .8s var(--ease); }
.book3d:hover { transform: rotateY(-8deg) rotateX(2deg); }
.book3d__cover {
  position: absolute; inset: 0; border-radius: 4px 14px 14px 4px; padding: 30px 28px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #2189ff 0%, #1428a0 55%, #0a1450 100%);
  box-shadow: inset 6px 0 12px rgba(0,0,0,.35), 30px 40px 80px -20px rgba(0,0,0,.8), 0 0 80px rgba(33,137,255,.3);
  overflow: hidden;
}
.book3d__cover .mono { font-size: 10px; color: #c9d4ff; }
.book3d__cover h3 { font-size: 86px; font-weight: 800; line-height: .9; margin-top: auto; letter-spacing: -.04em; }
.book3d__author { margin-top: 14px; font-weight: 600; font-size: 15px; color: #dbe3ff; }
.book3d__gear { position: absolute; right: -40px; top: 28%; font-size: 220px; color: rgba(255,255,255,.08); animation: spin 30s linear infinite; line-height: 1; }
@keyframes spin { to { rotate: 360deg; } }
.book3d__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; transform: rotateY(90deg) translateZ(-17px) translateX(-17px); transform-origin: left; background: linear-gradient(90deg, #0a1450, #1428a0); }
.book__copy > p { color: #b4b4bd; font-size: 18px; }
.book__copy em { color: #fff; }
.book blockquote { margin: 34px 0 0; padding: 28px 32px; border-radius: var(--radius); background: var(--ink-2); border-left: 4px solid var(--blue-2); font-family: var(--head); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.book cite { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; font-style: normal; color: var(--muted-d); letter-spacing: .06em; text-transform: uppercase; }

.aspire { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.aspire__video { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 9 / 16; max-height: 78vh; background: var(--ink-2); }
.aspire__video video { width: 100%; height: 100%; object-fit: cover; }
.aspire__video figcaption { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); font-size: 11px; }
.aspire__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.acard { padding: 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); position: relative; overflow: hidden; transition: transform .5s var(--ease), border-color .5s; }
.acard::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(33,137,255,.35), transparent 70%); opacity: 0; transition: opacity .5s; }
.acard:hover { transform: translateY(-6px); border-color: rgba(33,137,255,.45); }
.acard:hover::before { opacity: 1; }
.acard__n { font-family: var(--mono); color: var(--blue-2); font-size: 13px; }
.acard h4 { font-size: 24px; margin: 12px 0 10px; }
.acard p { color: #a9a9b3; margin: 0; font-size: 15.5px; position: relative; }

/* ---------- beyond / rail ---------- */
.beyond { padding: 130px 0 120px; }
.rail { display: flex; gap: 20px; overflow-x: auto; padding: 0 max(32px, calc((100% - 1240px) / 2)) 20px; scroll-snap-type: x proximity; cursor: grab; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail__item { flex: 0 0 auto; position: relative; margin: 0; height: 480px; width: 340px; border-radius: var(--radius-lg); overflow: hidden; scroll-snap-align: start; }
.rail__item--wide { width: 720px; }
.rail__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; user-select: none; }
.rail__item:hover img { transform: scale(1.06); }
.rail__item figcaption { position: absolute; inset: auto 0 0; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; display: grid; gap: 4px; }
.rail__item figcaption .mono { color: var(--blue-3); font-size: 11px; }
.rail__item figcaption b { font-family: var(--head); font-size: 22px; font-weight: 600; }

/* ---------- skills ---------- */
.skills { padding: 130px 0; }
.panels { position: relative; }
.panel { display: none; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; margin: 0 auto; }
.panel.is-active { display: flex; }
.panel > span { padding: 14px 22px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 2px 0 rgba(0,0,0,.03); animation: pop .5s var(--ease) both; transition: background .3s, color .3s; }
.panel > span:hover { background: var(--blue); color: #fff; }
.panel--certs { display: none; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1240px; }
.panel--certs.is-active { display: grid; }
.cert { background: #fff; border-radius: var(--radius); padding: 28px; animation: pop .5s var(--ease) both; border-top: 4px solid var(--blue-2); }
.cert b { font-family: var(--head); font-size: 22px; display: block; margin-bottom: 8px; }
.cert p { margin: 0; color: var(--muted); font-size: 14.5px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------- contact ---------- */
.contact { background: var(--black); padding: 160px 0 140px; overflow: hidden; text-align: center; }
.contact__orb { position: absolute; left: 50%; top: 100%; width: 1100px; aspect-ratio: 1; translate: -50% -45%; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2189ff 0%, #1428a0 35%, transparent 65%); opacity: .55; filter: blur(20px); animation: breathe 8s ease-in-out infinite; }
.contact__inner { position: relative; }
.contact__title { font-size: clamp(46px, 7.5vw, 110px); font-weight: 800; letter-spacing: -.04em; margin: 22px 0 44px; }
.contact__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 72px; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; text-align: left; }
.contact__grid > * { background: rgba(10,10,14,.85); backdrop-filter: blur(10px); padding: 24px; display: grid; gap: 6px; font-weight: 600; transition: background .3s; }
.contact__grid a:hover { background: var(--blue); }
.contact__grid .mono { color: var(--muted-d); font-size: 11px; font-weight: 400; }

/* ---------- footer (Samsung style) ---------- */
.footer { background: var(--grey); color: var(--black); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.brand--dark { color: var(--black); margin-bottom: 14px; }
.footer h5 { font-size: 14px; font-weight: 700; margin-bottom: 14px; font-family: var(--body); letter-spacing: 0; }
.footer__grid a:not(.brand) { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.footer__grid a:not(.brand):hover { color: var(--blue); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 13px; color: var(--muted); }

/* ---------- documents ---------- */
.documents { padding: 130px 0; }
.documents__lede { max-width: 560px; margin: -8px auto 0; font-size: 17px; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.doc { display: flex; flex-direction: column; background: var(--grey); border-radius: var(--radius-lg); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.doc:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(20,40,160,.35); }
.doc.is-hidden { display: none; }
.doc__thumb { position: relative; display: block; height: 240px; overflow: hidden; background: linear-gradient(135deg, #1428a0, #2189ff); }
.doc__thumb img { position: absolute; left: 50%; top: 28px; width: 72%; translate: -50% 0; border-radius: 6px 6px 0 0; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5); transition: transform .8s var(--ease); }
.doc:hover .doc__thumb img { transform: translateY(-10px) rotate(-1.5deg); }
.doc__type { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--black); font: 700 11px var(--mono); letter-spacing: .08em; z-index: 1; }
.doc--feature .doc__thumb { background: linear-gradient(135deg, #000 0%, #1428a0 100%); }
.doc__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.doc__body .mono { color: var(--blue); font-size: 11px; margin-bottom: 8px; }
.doc__body h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; margin-bottom: 10px; }
.doc__cap { color: #4a4a50; font-size: 14.5px; }
.doc__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.doc__meta span { padding: 5px 10px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; color: #3a3a40; }
.doc__actions { margin-top: auto; display: flex; align-items: center; gap: 18px; }
.doc__view { font-weight: 600; font-size: 14px; color: var(--blue); }
.doc__view:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--blue-2); }
.card__doc { margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--blue); }
.card__doc:hover { text-decoration: underline; text-underline-offset: 4px; }
.fyp__links .btn + .btn { margin-left: 10px; }
@media (max-width: 1100px) { .docs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .docs { grid-template-columns: 1fr; }
  .fyp__links .btn { display: flex; justify-content: center; margin: 0 0 10px !important; }
}

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.is-ready .reveal-up { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(12% 12% 12% 12% round 28px); transition: clip-path 1.4s var(--ease); }
.reveal-clip.in { clip-path: inset(0 0 0 0 round 28px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat { padding-bottom: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .fyp__results { grid-template-columns: repeat(2, 1fr); }
  .result--wide { grid-column: span 2; }
  .panel--certs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__card { max-width: 560px; width: 100%; margin-inline: auto; }
  .about__grid, .book__grid, .aspire, .exp, .fyp__problem { grid-template-columns: 1fr; gap: 48px; }
  .about__photo, .aspire__video { position: relative; top: 0; max-width: 480px; }
  .aspire__video { max-height: 640px; }
  .dlsm { grid-template-columns: 1fr; gap: 40px; }
  .dlsm__sticky { position: relative; top: 0; }
  .dlsm__visual { display: none; }
  .dlsm__steps { padding: 0; gap: 20px; }
  .step { opacity: 1; transform: none; }
  .sec-head--row { flex-direction: column; align-items: start; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .exp__kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .nav { padding: 0 16px; }
  .rail { padding: 0 16px 20px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__title { font-size: clamp(44px, 13.5vw, 70px); }
  .hero__lede { font-size: 16px; }
  .chip { padding: 9px 12px; font-size: 10.5px; gap: 8px; }
  .chip b { font-size: 20px; }
  .hero__label { left: 12px; right: 12px; width: auto; bottom: 12px; padding: 12px 14px; font-size: 13px; }
  .stats__grid, .cards, .aspire__cards, .fyp__results, .panel--certs, .contact__grid { grid-template-columns: 1fr; }
  .result--wide { grid-column: auto; padding: 30px 26px; }
  .result__pair { grid-template-columns: 1fr; }
  .stat { border-right: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .fyp__quote, .exp__side, .exp__body, .step { padding: 28px 24px; }
  .fyp__facts b { font-size: 40px; min-width: 80px; }
  .rail__item { height: 380px; width: 78vw; }
  .rail__item--wide { width: 88vw; }
  .tabs { border-radius: 20px; }
  .tab { padding: 10px 14px; font-size: 13px; }
  .fyp__links { text-align: left; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .btn--lg { font-size: 14px; padding: 16px 22px; }
  .hero__scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .reveal-up { opacity: 1; transform: none; }
  .reveal-clip { clip-path: none; }
  .hero__title .line > span { transform: none; }
}
