/* =========================================================
   Sophia Ranjitkar — Portfolio
   Palette: tangerine orange + white (deliberately bright,
   saturated orange — not a muted clay/terracotta)
   ========================================================= */

:root {
  --orange: #ff6b1a;
  --orange-deep: #e0520b;
  --orange-ink: #b8420a;      /* AA-contrast orange for small text on white */
  --orange-soft: #ffe3d1;
  --orange-mist: #fff4ec;
  --white: #ffffff;
  --paper: #fffaf6;
  --ink: #1b120c;
  --ink-2: #4a3b31;
  --ink-3: #85746a;
  --line: #f1e3d8;
  --shadow: 0 1px 2px rgba(80, 30, 0, .06), 0 12px 40px -12px rgba(160, 60, 0, .18);
  --shadow-lg: 0 30px 80px -30px rgba(200, 70, 0, .45);
  --radius: 22px;
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--white);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader svg { width: 120px; height: 120px; }
.loader .ring { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.2s var(--ease) forwards; }
.loader .mono { font-family: var(--serif); font-size: 34px; font-weight: 600; fill: var(--ink); opacity: 0; animation: fadeIn .6s .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), #ffb347); z-index: 200; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), 100% - 24px); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid rgba(241, 227, 216, .9);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled { box-shadow: var(--shadow); background: rgba(255, 255, 255, .9); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 15px; font-weight: 600; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--orange-mist); color: var(--orange-ink); }
.nav-cta { background: var(--ink); color: #fff !important; }
.nav-cta:hover { background: var(--orange) !important; color: #fff !important; }
.menu-btn { display: none; background: none; border: 0; width: 42px; height: 42px; border-radius: 50%; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
  will-change: transform;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 107, 26, .8); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-ink); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Common type ---------- */
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.05; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5.4vw, 66px); }
h2 em, h1 em { font-style: italic; color: var(--orange); font-weight: 400; }
h3 { font-size: 22px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 640px; }
section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: 56px; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-top: 120px; padding-bottom: 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob.b1 { width: 520px; height: 520px; background: #ffb07a; top: -140px; right: -120px; animation: float 14s ease-in-out infinite; }
.blob.b2 { width: 380px; height: 380px; background: #ffd9bd; bottom: -120px; left: -100px; animation: float 18s ease-in-out infinite reverse; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); opacity: .7; }
@keyframes float { 50% { transform: translate(-30px, 40px) scale(1.06); } }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 107, 26, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 26, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 107, 26, 0); } }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 8.6vw, 118px); line-height: .95; margin: 26px 0 22px; letter-spacing: -.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .hero h1 .line > span { transform: none; }
.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.rotator { font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--ink-2); min-height: 1.6em; }
.rotator .word { color: var(--orange-ink); border-right: 2px solid var(--orange); padding-right: 4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { border-color: transparent; } }
.hero .lede { margin: 14px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero visual: orbiting achievements around a robot */
.orbit-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin-inline: auto; }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed #f6c9aa; }
.orbit.o2 { inset: 14%; border-style: solid; border-color: var(--line); }
.orbit.o3 { inset: 30%; border: 0; background: radial-gradient(circle, #fff 0%, var(--orange-mist) 70%); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.spin { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.spin.rev { inset: 14%; animation-duration: 28s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip { position: absolute; transform: translate(-50%, -50%); width: 0; height: 0; display: grid; place-items: center; }
.chip-in {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip i { font-style: normal; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); font-size: 12px; }
.spin .chip-in { animation: spin 40s linear infinite reverse; }
.spin.rev .chip-in { animation: spin 28s linear infinite; }
.robot-core { position: absolute; inset: 30%; display: grid; place-items: center; }
.robot-core svg { width: 70%; }
.bob { animation: bob 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.eye { animation: blink 4s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.antenna { animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { to { fill: #ffb347; } }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-3); display: grid; justify-items: center; gap: 8px; }
.scroll-cue .mouse { width: 22px; height: 34px; border: 2px solid var(--ink-3); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; border-radius: 2px; background: var(--orange); transform: translateX(-50%); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translate(-50%, 9px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Stats strip ---------- */
.stats { padding: 0; margin-top: -10px; }
.stats-card { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.stats-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 10% 0%, rgba(255, 107, 26, .35), transparent 70%); pointer-events: none; }
.stat { padding: 34px 30px; border-right: 1px solid rgba(255, 255, 255, .09); position: relative; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: clamp(44px, 5vw, 62px); line-height: 1; color: var(--orange); font-weight: 500; }
.stat .num sup { font-size: .45em; vertical-align: top; margin-left: 2px; }
.stat .lbl { margin-top: 10px; font-size: 14.5px; color: #e9ddd4; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.portrait { position: relative; aspect-ratio: 4/5; border-radius: 32px; overflow: hidden; background: linear-gradient(160deg, var(--orange) 0%, #ff9a4d 100%); box-shadow: var(--shadow-lg); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.portrait .ph-mono { font-family: var(--serif); font-size: clamp(110px, 14vw, 170px); font-style: italic; line-height: 1; opacity: .95; }
.portrait .ph-note { position: absolute; bottom: 18px; left: 18px; right: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; background: rgba(0, 0, 0, .18); padding: 8px 12px; border-radius: 10px; text-align: center; }
.portrait .gear { position: absolute; width: 180px; right: -50px; top: -50px; opacity: .18; animation: spin 30s linear infinite; }
.portrait-tag { position: absolute; left: -18px; bottom: 40px; background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 700; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.portrait-wrap { position: relative; }
.about-text p { color: var(--ink-2); font-size: 18px; }
.about-text p.big { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.traits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trait { padding: 9px 16px; border-radius: 999px; background: var(--orange-mist); color: var(--orange-ink); font-weight: 700; font-size: 14px; border: 1px solid var(--orange-soft); }

/* ---------- Journey ---------- */
.journey { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline { position: relative; margin-top: 30px; }
.track { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: var(--line); border-radius: 4px; }
.track-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(var(--orange), #ffa24d); border-radius: 4px; }
.rover { position: absolute; left: 50%; top: 0; width: 56px; height: 56px; transform: translate(-50%, -50%); z-index: 3; background: #fff; border-radius: 50%; box-shadow: 0 0 0 5px var(--orange-soft), var(--shadow); display: grid; place-items: center; }
.rover svg { width: 36px; }
.rover .wheel { animation: spin 1s linear infinite; transform-box: fill-box; transform-origin: center; }
.milestone { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-bottom: 70px; }
.milestone:last-child { margin-bottom: 0; }
@media (min-width: 861px) { .milestone { margin-bottom: -90px; } .milestone:last-child { margin-bottom: 0; } }
.milestone .node { position: absolute; left: 50%; top: 30px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--line); transform: translate(-50%, -50%); transition: border-color .4s, transform .4s var(--ease); z-index: 2; }
.milestone.lit .node { border-color: var(--orange); transform: translate(-50%, -50%) scale(1.25); }
.m-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 26px; box-shadow: var(--shadow); position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.m-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.milestone:nth-child(odd of .milestone) .m-card { grid-column: 1; }
.milestone.right .m-card { grid-column: 2; }
.m-when { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-ink); font-weight: 600; }
.m-card h3 { margin: 10px 0 10px; }
.m-card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.m-icon { position: absolute; top: -18px; right: 22px; width: 46px; height: 46px; border-radius: 14px; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(255, 107, 26, .8); }
.m-icon svg { width: 24px; height: 24px; }
.m-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.m-tags span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--orange-mist); color: var(--orange-ink); }
.milestone.future .m-card { background: var(--ink); color: #fff; border-color: var(--ink); }
.milestone.future .m-card p { color: #e9ddd4; }
.milestone.future .m-when { color: #ffb07a; }

/* ---------- Featured project ---------- */
.feature { overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.device {
  position: relative; width: min(100%, 520px); aspect-ratio: 4/3; margin-inline: auto;
  border-radius: 34px; background: #111; padding: 16px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #333;
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #fbf6f1; }
.screen canvas { width: 100%; height: 100%; display: block; }
.hud { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ink); pointer-events: none; }
.hud b { color: var(--orange-ink); }
.hud .pill { background: rgba(255, 255, 255, .9); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); }
.float-card { position: absolute; background: #fff; border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.float-card small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11.5px; }
.float-card .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 15px; }
.fc1 { left: -18px; bottom: 36px; animation: bob 4s ease-in-out infinite; }
.fc2 { right: -14px; top: 30px; animation: bob 4.6s ease-in-out infinite .6s; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.feature-list li b { color: var(--ink); }
.tick { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; margin-top: 2px; }
.tick svg { width: 14px; height: 14px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* evolution: scratch -> flutter */
.evolve { margin-top: 90px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.evo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.evo .step { font-family: var(--mono); font-size: 12px; color: var(--orange-ink); letter-spacing: .12em; }
.evo h3 { margin: 8px 0 8px; font-size: 20px; }
.evo p { margin: 0; color: var(--ink-2); font-size: 15px; }
.evo-art { height: 92px; margin-bottom: 16px; border-radius: 14px; background: var(--orange-mist); display: flex; align-items: center; justify-content: center; gap: 6px; overflow: hidden; position: relative; }
.blocks { display: grid; gap: 5px; }
.blk { height: 16px; border-radius: 5px 5px 5px 5px; background: var(--orange); animation: stack 3s var(--ease) infinite; transform-origin: left; }
.blk:nth-child(1) { width: 90px; }
.blk:nth-child(2) { width: 120px; margin-left: 14px; background: #ffa24d; animation-delay: .2s; }
.blk:nth-child(3) { width: 70px; margin-left: 14px; background: #ffc38a; animation-delay: .4s; }
.blk:nth-child(4) { width: 100px; animation-delay: .6s; }
@keyframes stack { 0% { transform: scaleX(0); } 25%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.code { font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink); text-align: left; width: 100%; padding: 0 16px; }
.code .k { color: var(--orange-ink); font-weight: 700; }
.code .c { color: var(--ink-3); }
.typing { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: type 4s steps(28) infinite; }
@keyframes type { 0% { width: 0; } 50%, 90% { width: 28ch; } 100% { width: 0; } }
.cube { width: 46px; height: 46px; position: relative; transform-style: preserve-3d; animation: cube 6s linear infinite; }
.cube div { position: absolute; inset: 0; border: 2px solid var(--orange); background: rgba(255, 107, 26, .12); }
.cube .f1 { transform: translateZ(23px); } .cube .f2 { transform: rotateY(180deg) translateZ(23px); }
.cube .f3 { transform: rotateY(90deg) translateZ(23px); } .cube .f4 { transform: rotateY(-90deg) translateZ(23px); }
.cube .f5 { transform: rotateX(90deg) translateZ(23px); } .cube .f6 { transform: rotateX(-90deg) translateZ(23px); }
@keyframes cube { to { transform: rotateX(360deg) rotateY(360deg); } }
.evo-arrow { display: grid; place-items: center; color: var(--orange); }
.evo-arrow svg { width: 34px; }
.evo-arrow path { stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }

.versions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-3); }
.ver { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.ver b { color: var(--orange-ink); }

/* ---------- Featured project #2 (BIOBUZZ) ---------- */
.feature-2 { margin-top: clamp(100px, 12vw, 150px); }
.browser { border-radius: 20px; overflow: hidden; background: #1b120c; box-shadow: var(--shadow-lg), 0 0 0 1px #2a1d14; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #241810; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a3b31; }
.browser-bar i:first-child { background: var(--orange); }
.browser-bar span { margin-left: 10px; flex: 1; font-family: var(--mono); font-size: 12px; color: #e9ddd4; background: #1b120c; padding: 5px 12px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-shot { position: relative; display: block; aspect-ratio: 800 / 560; overflow: hidden; }
.browser-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.browser-shot:hover img { transform: scale(1.04); }
.play-badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(255, 107, 26, .9); animation: pulse 2.4s ease-in-out infinite; }
.play-badge svg { width: 16px; height: 16px; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.fc3 { right: -14px; top: -26px; animation: bob 4.2s ease-in-out infinite; }
.fc4 { right: -14px; bottom: -24px; animation: bob 4.8s ease-in-out infinite .5s; }
.sim-evo { margin-top: 22px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }
.sim-evo b { color: var(--orange-ink); }
.proj-grid.two { grid-template-columns: repeat(2, 1fr); }

/* ---------- Other projects ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
.proj { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease), border-color .3s; }
.proj:hover { transform: translateY(-6px); border-color: #ffc7a3; }
.proj .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--orange-ink); text-transform: uppercase; }
.proj p { margin: 0; color: var(--ink-2); font-size: 15.5px; flex: 1; }
.proj a.more { font-weight: 700; color: var(--orange-ink); display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; }
.proj a.more:hover { gap: 10px; }
.proj a.more, .proj a.more svg { transition: gap .2s; }

/* ---------- Robotics ---------- */
.robotics { background: var(--ink); color: #fff; overflow: hidden; }
.robotics .eyebrow { color: #ffb07a; }
.robotics .lede { color: #e9ddd4; }
.robotics h2 em { color: var(--orange); }
.gear-deco { position: absolute; opacity: .08; color: #fff; }
.gear-deco.g1 { width: 420px; right: -140px; top: -120px; animation: spin 50s linear infinite; }
.gear-deco.g2 { width: 240px; right: 200px; top: 150px; animation: spin 35s linear infinite reverse; }
.teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 30px; position: relative; overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.team:hover { border-color: rgba(255, 107, 26, .6); transform: translateY(-4px); }
.team .num { font-family: var(--mono); font-size: 13px; color: #ffb07a; letter-spacing: .1em; }
.team h3 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 10px 0 4px; }
.team .role { display: inline-block; margin: 8px 0 16px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: var(--orange); color: #fff; }
.team p { color: #e9ddd4; font-size: 15.5px; margin: 0 0 16px; }
.team ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: #fff; }
.team li { display: flex; gap: 10px; }
.team li::before { content: "▸"; color: var(--orange); }
.team a { color: #ffb07a; font-weight: 700; font-size: 14px; display: inline-block; margin-top: 16px; }
.team a:hover { color: #fff; }

/* ---------- Awards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filter { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .25s; }
.filter[aria-pressed="true"], .filter:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.award { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px 24px 22px; box-shadow: var(--shadow); transition: transform .4s var(--ease), opacity .35s, box-shadow .3s; overflow: hidden; }
.award:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.award.hide { display: none; }
.award.star { background: linear-gradient(155deg, #fff 55%, var(--orange-mist)); border-color: #ffc7a3; }
.award .medal { width: 46px; height: 46px; margin-bottom: 16px; }
.award .medal circle.m { fill: var(--orange); }
.award.star .medal circle.m { fill: var(--orange-deep); }
.award h3 { font-size: 18.5px; }
.award .where { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.award .when { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .06em; }
.award .badge { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--orange); color: #fff; }
.award::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); }
.award:hover::after { left: 130%; }
.award-note { margin-top: 22px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- Impact ---------- */
.impact { background: var(--paper); border-top: 1px solid var(--line); }
.impact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.impact-hero { background: var(--orange); color: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; }
.impact-hero .big { font-family: var(--serif); font-size: clamp(80px, 11vw, 150px); line-height: .9; font-weight: 500; }
.impact-hero h3 { font-size: 26px; margin: 10px 0 10px; }
.impact-hero p { margin: 0; max-width: 520px; color: #fff4ec; }
.impact-hero .route { position: absolute; top: 22px; right: 22px; width: 46%; opacity: .95; }
.impact-hero .big small { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; opacity: .9; }
.route .path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 6 8; }
.route .plane { offset-path: path("M20,120 C120,10 260,10 380,70"); animation: fly 6s ease-in-out infinite; }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.route text { fill: #fff; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.impact-side { display: grid; gap: 22px; }
.imp { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.imp h3 { font-size: 19px; margin-bottom: 6px; }
.imp p { margin: 0; color: var(--ink-2); font-size: 15px; }
.imp .k { font-family: var(--mono); font-size: 12px; color: var(--orange-ink); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.service-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }

/* ---------- Academics ---------- */
.acad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.ladder { display: grid; gap: 12px; }
.rung { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.rung .g { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--orange-ink); letter-spacing: .08em; }
.rung .c { font-weight: 700; font-size: 15.5px; }
.rung .c small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13.5px; }
.rung .bar { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: var(--orange-mist); overflow: hidden; }
.rung .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), #ffb347); border-radius: 5px; transition: width 1.4s var(--ease); }
.in .rung .bar i { width: var(--w); }
.school { padding: 26px; border-radius: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); margin-bottom: 16px; }
.school .yrs { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--orange-ink); }
.school h3 { margin: 6px 0 6px; }
.school p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Skills ---------- */
.skills-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-col { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }
.skill-col .k { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.skill-col .k span { width: 40px; height: 40px; border-radius: 12px; background: var(--orange-mist); color: var(--orange-ink); display: grid; place-items: center; }
.skill-col .k span svg { width: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 8px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: 14px; transition: all .25s; }
.tag:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: #fff; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 44px); white-space: nowrap; color: var(--ink); display: flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--orange); font-size: .6em; }
.marquee span:nth-child(even) { font-style: italic; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Beyond ---------- */
.beyond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bey { border-radius: 22px; padding: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; min-height: 250px; display: flex; flex-direction: column; }
.bey .art { height: 80px; margin-bottom: 16px; display: flex; align-items: center; }
.bey h3 { font-size: 19px; margin-bottom: 8px; }
.bey p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.bey:nth-child(1) { background: var(--orange); color: #fff; border-color: var(--orange); }
.bey:nth-child(1) p { color: #fff4ec; }
.ball { width: 56px; height: 56px; animation: dribble 1.1s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
@keyframes dribble { from { transform: translateY(-14px); } to { transform: translateY(14px) scaleY(.92); } }
.eq { display: flex; gap: 5px; align-items: flex-end; height: 56px; }
.eq i { width: 8px; background: var(--orange); border-radius: 3px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .45s; } .eq i:nth-child(5) { animation-delay: .6s; } .eq i:nth-child(6) { animation-delay: .75s; }
@keyframes eq { 0%, 100% { height: 12px; } 50% { height: 54px; } }
.foil { width: 110px; height: 60px; }
.foil line { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; transform-origin: 10px 50px; animation: lunge 1.6s var(--ease) infinite; }
@keyframes lunge { 0%, 100% { transform: rotate(0deg) translateX(0); } 40% { transform: rotate(-4deg) translateX(14px); } }
.book { width: 70px; height: 56px; perspective: 300px; position: relative; }
.book .pg { position: absolute; top: 4px; left: 35px; width: 32px; height: 48px; background: var(--orange-soft); border: 2px solid var(--orange); border-radius: 0 6px 6px 0; transform-origin: left; animation: flip 2.4s ease-in-out infinite; }
.book .base { position: absolute; inset: 4px 3px; border: 2px solid var(--orange); border-radius: 6px; background: #fff; }
.book .base::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--orange); }
@keyframes flip { 0% { transform: rotateY(0); } 60%, 100% { transform: rotateY(-180deg); } }

/* ---------- Next / goals ---------- */
.next { text-align: center; overflow: hidden; }
.next h2 { max-width: 900px; margin-inline: auto; }
.next .lede { margin: 22px auto 0; }
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; text-align: left; }
.goal { padding: 24px; border-radius: 20px; border: 1.5px dashed #f6c9aa; background: var(--orange-mist); }
.goal b { display: block; font-size: 17px; margin: 8px 0 6px; }
.goal span { font-family: var(--mono); font-size: 12px; color: var(--orange-ink); letter-spacing: .1em; }
.goal p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-left { background: var(--orange); color: #fff; padding: clamp(30px, 5vw, 56px); position: relative; overflow: hidden; }
.contact-left h2 { color: #fff; }
.contact-left h2 em { color: var(--ink); }
.contact-left p { color: #fff4ec; }
.contact-left .mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 800; font-size: clamp(16px, 1.8vw, 20px); background: #fff; color: var(--orange-ink); padding: 14px 20px; border-radius: 16px; word-break: break-all; }
.contact-left .mail:hover { background: var(--ink); color: #fff; }
.contact-left .links { display: grid; gap: 10px; margin-top: 28px; }
.contact-left .links a { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; opacity: .92; }
.contact-left .links a:hover { opacity: 1; text-decoration: underline; }
.contact-left .ring-deco { position: absolute; width: 340px; height: 340px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 50%; right: -120px; bottom: -120px; }
.contact-left .ring-deco.r2 { width: 220px; height: 220px; right: -60px; bottom: -60px; }
form.contact-form { background: #fff; padding: clamp(30px, 5vw, 56px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--ink-3); margin: 0; }
.form-status { font-weight: 700; color: var(--orange-ink); min-height: 1.4em; margin: 0; }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
footer { padding: 50px 0 40px; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; color: var(--ink-3); font-size: 14px; }
.foot a:hover { color: var(--orange-ink); }
.to-top { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; transition: all .25s; }
.to-top:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-3px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* cursor glow (desktop only) */
.cursor-glow { position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(255, 107, 26, .10), transparent 65%); transform: translate(-50%, -50%); left: -500px; top: -500px; transition: opacity .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .feature-grid, .acad-grid, .contact-card, .impact-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; margin: 10px auto 0; width: 100%; padding: 0 44px; }
  .scroll-cue { display: none; }
  .hero { min-height: auto; }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .teams, .proj-grid, .proj-grid.two, .skills-wrap, .service-row { grid-template-columns: 1fr; }
  .feature-2 > div:first-child { order: 2; }
  .award-grid { grid-template-columns: repeat(2, 1fr); }
  .beyond-grid, .goals { grid-template-columns: repeat(2, 1fr); }
  .evolve { grid-template-columns: 1fr; }
  .evo-arrow { transform: rotate(90deg); height: 40px; }
  .about-grid { gap: 50px; }
  .portrait-wrap { max-width: 420px; margin-inline: auto; width: 100%; }
}
@media (max-width: 860px) {
  .nav-links { position: fixed; top: 74px; left: 12px; right: 12px; flex-direction: column; background: #fff; border-radius: 22px; padding: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .3s var(--ease); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { display: block; padding: 14px 16px; font-size: 16px; }
  .menu-btn { display: block; }
  /* timeline collapses to single column with track on the left */
  .track, .rover { left: 22px; }
  .milestone { grid-template-columns: 1fr; gap: 0; padding-left: 58px; margin-bottom: 44px; }
  .milestone .node { left: 22px; }
  .milestone.right .m-card { grid-column: 1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .award-grid, .beyond-grid, .goals, .row2 { grid-template-columns: 1fr; }
  .stat { padding: 24px 20px; }
  .fc1 { left: 6px; bottom: -22px; } .fc2 { right: 6px; top: -20px; }
  .fc3 { right: 6px; top: -30px; } .fc4 { right: 6px; bottom: -26px; }
  .portrait-tag { left: 10px; }
  .chip-in { font-size: 11px; padding: 7px 9px; }
  .chip i { width: 18px; height: 18px; }
  .hero { padding-top: 100px; }
  .cursor-glow { display: none; }
  .hero-visual { padding: 0 70px; }
  .spin.rev { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}
