/* =========================================================
   Amro Sarayreh — Portfolio v2
   Palette derived from the AMRO logo
   ========================================================= */

:root{
  --bg:        #050B14;
  --bg-2:      #071426;
  --navy:      #0B1B33;
  --blue:      #1E4E8C;
  --blue-2:    #2E6BB8;
  --sky:       #8FC2FF;
  --ice:       #E8F1FF;
  --text:      #EAF2FF;
  --muted:     #93A9C7;
  --muted-2:   #5F7A9E;
  --line:      rgba(143,194,255,.14);
  --line-2:    rgba(143,194,255,.28);
  --glass:     rgba(9,20,36,.55);
  --radius:    24px;
  --ease:      cubic-bezier(.2,.7,.2,1);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;
  background:
    radial-gradient(900px 600px at 78% -10%, rgba(30,78,140,.32), transparent 60%),
    radial-gradient(700px 500px at 8% 18%, rgba(46,107,184,.14), transparent 60%),
    radial-gradient(800px 700px at 50% 110%, rgba(30,78,140,.16), transparent 60%),
    var(--bg);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
ul{ list-style:none; }
pre{ font-family:var(--font-mono); }
::selection{ background:rgba(143,194,255,.28); color:#fff; }

/* ---------- helpers ---------- */
.container{ width:min(1240px, calc(100% - 48px)); margin-inline:auto; }

.section{ position:relative; padding:clamp(90px, 13vh, 170px) 0; }

.section-label{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-size:11px;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--sky);
  margin-bottom:22px;
}
.section-label::before{ content:""; width:34px; height:1px; background:linear-gradient(90deg, var(--sky), transparent); }

h1,h2,h3{ font-family:var(--font-head); font-weight:600; letter-spacing:-.03em; }

h2{
  font-size:clamp(2.2rem, 4.8vw, 4.2rem);
  line-height:1.04;
  max-width:16ch;
}
h2 em{
  font-style:normal;
  background:linear-gradient(100deg, var(--ice) 0%, var(--sky) 45%, var(--blue-2) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.glass{
  background:var(--glass);
  border:1px solid var(--line);
  border-radius:var(--radius);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* ---------- noise + orbs ---------- */
.noise{
  position:fixed; inset:0; z-index:3; pointer-events:none; opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orbs{ position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.orb{ position:absolute; border-radius:50%; filter:blur(110px); opacity:.5; will-change:transform; }
.orb-1{ width:560px; height:560px; top:-180px; right:-140px; background:#1E4E8C; animation:drift 18s ease-in-out infinite alternate; }
.orb-2{ width:420px; height:420px; bottom:8%; left:-160px; background:#2E6BB8; opacity:.3; animation:drift 22s ease-in-out infinite alternate-reverse; }
.orb-3{ width:340px; height:340px; top:42%; left:48%; background:#8FC2FF; opacity:.12; animation:drift 26s ease-in-out infinite alternate; }
@keyframes drift{ from{ transform:translate3d(0,0,0) scale(1); } to{ transform:translate3d(40px,-30px,0) scale(1.12); } }

/* ---------- loader ---------- */
.loader{ position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:var(--bg); transition:opacity .8s var(--ease), visibility .8s; animation:loaderFallback .6s ease 2.8s forwards; }
body.loaded .loader{ opacity:0; visibility:hidden; }
@keyframes loaderFallback{ to{ opacity:0; visibility:hidden; } }
.loader-inner{ display:flex; flex-direction:column; align-items:center; gap:22px; }
.loader-logo{ width:72px; height:72px; border-radius:50%; animation:pulse 1.4s ease-in-out infinite; box-shadow:0 0 60px rgba(143,194,255,.35); }
.loader-bar{ width:160px; height:2px; background:rgba(143,194,255,.15); overflow:hidden; border-radius:2px; }
.loader-bar span{ display:block; height:100%; width:40%; background:linear-gradient(90deg, transparent, var(--sky), transparent); animation:loadbar 1.2s ease-in-out infinite; }
.loader-inner p{ font-size:10px; letter-spacing:.4em; color:var(--muted-2); }
@keyframes pulse{ 50%{ transform:scale(.92); opacity:.7; } }
@keyframes loadbar{ 0%{ transform:translateX(-120%); } 100%{ transform:translateX(320%); } }

/* ---------- cursor ---------- */
.cursor-dot,.cursor-ring{ position:fixed; top:0; left:0; z-index:99; pointer-events:none; border-radius:50%; opacity:0; transition:opacity .3s; }
.cursor-dot{ width:6px; height:6px; background:var(--sky); transform:translate(-50%,-50%); }
.cursor-ring{ width:38px; height:38px; border:1px solid rgba(143,194,255,.5); transform:translate(-50%,-50%); transition:width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s, opacity .3s; }
body.cursor-ready .cursor-dot, body.cursor-ready .cursor-ring{ opacity:1; }
body.cursor-hover .cursor-ring{ width:64px; height:64px; background:rgba(143,194,255,.08); border-color:rgba(143,194,255,.75); }
@media (hover:none){ .cursor-dot,.cursor-ring{ display:none; } }

.scroll-progress{ position:fixed; top:0; left:0; width:100%; height:2px; background:linear-gradient(90deg, var(--sky), var(--blue-2)); transform:scaleX(0); transform-origin:0 50%; z-index:60; pointer-events:none; }

/* ---------- nav ---------- */
.nav{ position:fixed; top:0; left:0; right:0; z-index:50; padding:22px 0; transition:padding .35s var(--ease), background .35s, border-color .35s; border-bottom:1px solid transparent; }
.nav.scrolled{ padding:14px 0; background:rgba(5,11,20,.72); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); border-bottom-color:var(--line); }
.nav-inner{ display:flex; align-items:center; gap:28px; }

.brand{ display:flex; align-items:center; gap:11px; font-family:var(--font-head); font-weight:600; font-size:18px; letter-spacing:-.02em; }
.brand img{ width:40px; height:40px; border-radius:50%; border:1px solid var(--line-2); }
.brand-dot{ color:var(--sky); }

.nav-links{ display:flex; gap:34px; margin-left:auto; }
.nav-links a{ position:relative; font-size:13.5px; color:var(--muted); transition:color .25s; }
.nav-links a::after{ content:""; position:absolute; left:0; bottom:-5px; width:100%; height:1px; background:var(--sky); transform:scaleX(0); transform-origin:right; transition:transform .3s var(--ease); }
.nav-links a:hover{ color:var(--text); }
.nav-links a:hover::after{ transform:scaleX(1); transform-origin:left; }
.nav-cta{ margin-left:4px; }

.menu-btn{ display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; align-items:center; justify-content:center; flex-direction:column; gap:5px; }
.menu-btn span{ display:block; width:16px; height:1.5px; background:var(--text); transition:transform .3s, opacity .3s; }
body.menu-open .menu-btn span:first-child{ transform:translateY(3.25px) rotate(45deg); }
body.menu-open .menu-btn span:last-child{ transform:translateY(-3.25px) rotate(-45deg); }

.mobile-menu{ position:fixed; inset:0; z-index:45; background:rgba(5,11,20,.96); backdrop-filter:blur(20px); display:flex; flex-direction:column; justify-content:center; padding:100px 28px 40px; opacity:0; visibility:hidden; transition:opacity .4s var(--ease), visibility .4s; }
body.menu-open .mobile-menu{ opacity:1; visibility:visible; }
.mobile-menu nav{ display:flex; flex-direction:column; gap:8px; }
.mobile-menu nav a{ font-family:var(--font-head); font-size:clamp(2rem, 8vw, 3.4rem); font-weight:500; letter-spacing:-.03em; display:flex; align-items:baseline; gap:16px; padding:8px 0; border-bottom:1px solid var(--line); transform:translateY(20px); opacity:0; transition:transform .5s var(--ease), opacity .5s, color .25s; }
body.menu-open .mobile-menu nav a{ transform:none; opacity:1; }
body.menu-open .mobile-menu nav a:nth-child(1){ transition-delay:.06s; }
body.menu-open .mobile-menu nav a:nth-child(2){ transition-delay:.12s; }
body.menu-open .mobile-menu nav a:nth-child(3){ transition-delay:.18s; }
body.menu-open .mobile-menu nav a:nth-child(4){ transition-delay:.24s; }
body.menu-open .mobile-menu nav a:nth-child(5){ transition-delay:.3s; }
.mobile-menu nav small{ font-family:var(--font-body); font-size:11px; color:var(--sky); letter-spacing:.2em; }
.mobile-menu-foot{ margin-top:auto; display:flex; flex-direction:column; gap:10px; color:var(--muted); font-size:14px; }

/* ---------- buttons ---------- */
.btn{ position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:15px 26px; border-radius:999px; font-size:14px; font-weight:500; letter-spacing:.01em; white-space:nowrap; transition:transform .3s var(--ease), box-shadow .3s, border-color .3s, background .3s, color .3s; will-change:transform; }
.btn span{ font-size:12px; opacity:.8; transition:transform .3s; }
.btn:hover span{ transform:translate(2px,-2px); }
.btn-primary{ color:#04101F; background:linear-gradient(120deg, var(--ice), var(--sky) 55%, #B9D7FF); box-shadow:0 10px 40px -12px rgba(143,194,255,.6), inset 0 1px 0 rgba(255,255,255,.6); }
.btn-primary:hover{ box-shadow:0 18px 60px -12px rgba(143,194,255,.8); }
.btn-ghost{ color:var(--text); border:1px solid var(--line-2); background:rgba(143,194,255,.03); }
.btn-ghost:hover{ background:rgba(143,194,255,.08); border-color:rgba(143,194,255,.5); }
.btn-sm{ padding:11px 20px; font-size:13px; }

/* ---------- hero ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  padding:112px 0 66px;
  overflow:hidden;
}

.bg-canvas{ position:absolute; inset:0; width:100%; height:100%; z-index:0; opacity:.55; pointer-events:none; }

.hero-grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(143,194,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,194,255,.05) 1px, transparent 1px);
  background-size:82px 82px;
  mask-image:radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity:.65;
  z-index:0;
}

.hero-inner{ position:relative; z-index:1; display:grid; grid-template-columns:1.08fr .92fr; align-items:center; gap:clamp(40px,6vw,80px); }

.eyebrow{ display:inline-flex; align-items:center; gap:10px; font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-bottom:26px; animation:fadeUp .9s var(--ease) both .2s; }
.pulse{ width:7px; height:7px; border-radius:50%; background:#6EE7B7; box-shadow:0 0 0 0 rgba(110,231,183,.5); animation:pulse-ring 2.2s infinite; }
@keyframes pulse-ring{ 0%{ box-shadow:0 0 0 0 rgba(110,231,183,.45); } 70%{ box-shadow:0 0 0 10px rgba(110,231,183,0); } 100%{ box-shadow:0 0 0 0 rgba(110,231,183,0); } }

.hero-title{ font-size:clamp(2.9rem, 6.6vw, 6.1rem); line-height:.98; letter-spacing:-.045em; margin-bottom:26px; }
.hero-title .line{ display:block; overflow:hidden; padding-bottom:.06em; }
.hero-title .line > span{ display:block; transform:translateY(115%); animation:lineIn 1.1s var(--ease) both; }
.hero-title .line:nth-child(1) > span{ animation-delay:.28s; }
.hero-title .line:nth-child(2) > span{ animation-delay:.4s; }
.hero-title .line:nth-child(3) > span{ animation-delay:.52s; }
.hero-title em{ font-style:normal; background:linear-gradient(100deg, var(--ice) 0%, var(--sky) 40%, var(--blue-2) 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }

.rotator-line{ display:inline-block; min-width:9.4ch; }
.rotator{ display:inline-block; will-change:transform,opacity; background:linear-gradient(100deg, var(--ice) 0%, var(--sky) 40%, var(--blue-2) 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }

@keyframes lineIn{ from{ transform:translateY(115%); } to{ transform:translateY(0); } }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }

.hero-sub{ max-width:50ch; color:var(--muted); font-size:clamp(15px,1.2vw,16.5px); line-height:1.8; margin-bottom:34px; animation:fadeUp .9s var(--ease) both .7s; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:34px; animation:fadeUp .9s var(--ease) both .82s; }

.hero-proof{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:12px; color:var(--muted-2); letter-spacing:.04em; animation:fadeUp .9s var(--ease) both .95s; }
.hero-proof a{ color:var(--sky); border-bottom:1px solid rgba(143,194,255,.3); padding-bottom:1px; transition:border-color .25s; }
.hero-proof a:hover{ border-color:var(--sky); }
.hero-proof i{ opacity:.4; font-style:normal; }

/* hero side */
.hero-side{ position:relative; display:flex; align-items:center; justify-content:center; min-height:520px; animation:fadeUp 1.2s var(--ease) both .55s; }
.profile-wrap{ position:relative; width:min(430px, 100%); }

.profile-card{
  position:relative;
  z-index:2;
  padding:28px;
  border-radius:26px;
  background:linear-gradient(160deg, rgba(13,28,50,.88), rgba(5,11,20,.94));
  border:1px solid rgba(143,194,255,.22);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 40px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style:preserve-3d;
}
.profile-card::before{
  content:"";
  position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(500px 200px at 20% 0%, rgba(143,194,255,.14), transparent 60%);
}
.profile-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.avatar{ position:relative; width:88px; height:88px; flex:none; }
.avatar img{ width:88px; height:88px; border-radius:50%; object-fit:cover; border:1px solid rgba(143,194,255,.35); position:relative; z-index:1; }
.avatar-ring{ position:absolute; inset:-7px; border-radius:50%; border:1px dashed rgba(143,194,255,.3); animation:spin 18s linear infinite; }
.status-pill{ display:inline-flex; align-items:center; gap:7px; padding:6px 11px; border-radius:999px; border:1px solid rgba(110,231,183,.28); background:rgba(110,231,183,.06); color:#6EE7B7; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; }
.status-pill i{ width:6px; height:6px; border-radius:50%; background:#6EE7B7; box-shadow:0 0 10px #6EE7B7; }

.profile-card h2{ font-size:clamp(1.5rem,2vw,1.9rem); margin:22px 0 4px; letter-spacing:-.03em; }
.profile-role{ font-size:13.5px; color:var(--sky); margin-bottom:3px; }
.profile-loc{ font-size:11.5px; color:var(--muted-2); margin-bottom:20px; letter-spacing:.02em; }

.profile-stats{ display:grid; grid-template-columns:1fr 1fr; gap:16px 12px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:20px; }
.profile-stats strong{ display:block; font-family:var(--font-head); font-size:1.35rem; letter-spacing:-.03em; line-height:1.1; }
.profile-stats sup{ font-size:.5em; color:var(--sky); vertical-align:super; }
.profile-stats span{ display:block; font-size:10.5px; color:var(--muted-2); margin-top:3px; letter-spacing:.03em; }

.profile-cta{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 16px; border-radius:12px; background:rgba(143,194,255,.07); border:1px solid var(--line); font-size:13px; transition:background .3s, border-color .3s, gap .3s; }
.profile-cta span{ font-size:12px; color:var(--sky); }
.profile-cta:hover{ background:rgba(143,194,255,.12); border-color:var(--line-2); gap:14px; }

/* floating cards */
.float-card{ position:absolute; z-index:1; border-radius:16px; border:1px solid rgba(143,194,255,.18); background:rgba(6,15,28,.82); backdrop-filter:blur(16px); box-shadow:0 30px 80px -30px rgba(0,0,0,.9); }
.code-float{ top:-46px; left:-78px; width:280px; padding:14px; transform:rotate(-5deg); animation:float 8s ease-in-out infinite; }
.code-dots{ display:flex; gap:5px; margin-bottom:9px; }
.code-dots i{ width:6px; height:6px; border-radius:50%; background:rgba(143,194,255,.25); }
.code-dots i:first-child{ background:#ff6b6b; }
.code-dots i:nth-child(2){ background:#ffd166; }
.code-dots i:nth-child(3){ background:#6EE7B7; }
.code-float pre{ font-size:10.5px; line-height:1.7; color:#cfe0f7; white-space:pre-wrap; }
.c-key{ color:#8FC2FF; } .c-str{ color:#A7F3D0; } .c-fn{ color:#FDE68A; } .c-comment{ color:#5F7A9E; }

.live-float{ bottom:-34px; right:-58px; display:flex; align-items:center; gap:11px; padding:12px 16px; animation:float 7s ease-in-out infinite -2s; }
.live-dot{ width:8px; height:8px; border-radius:50%; background:#6EE7B7; box-shadow:0 0 12px #6EE7B7; flex:none; }
.live-float strong{ display:block; font-size:12px; letter-spacing:.02em; }
.live-float small{ display:block; font-size:10px; color:var(--muted-2); }

.float-chip{ position:absolute; padding:7px 13px; border-radius:999px; font-size:11px; letter-spacing:.04em; color:var(--text); background:rgba(9,20,36,.8); border:1px solid var(--line); backdrop-filter:blur(10px); box-shadow:0 10px 30px -10px rgba(0,0,0,.7); animation:float 6s ease-in-out infinite; z-index:3; }
.chip-1{ top:14%; right:-14px; animation-delay:-1s; }
.chip-2{ bottom:18%; left:-92px; animation-delay:-2.4s; }
.chip-3{ top:4%; left:-110px; animation-delay:-3.6s; }
@keyframes float{ 50%{ transform:translateY(-12px); } }
@keyframes spin{ to{ transform:rotate(360deg); } }

/* hero marquee */
.hero-marquee{ position:absolute; left:0; right:0; bottom:0; z-index:2; border-top:1px solid var(--line); background:rgba(5,11,20,.4); backdrop-filter:blur(8px); padding:15px 0; overflow:hidden; mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hero-marquee .marquee-track{ display:flex; gap:34px; width:max-content; animation:marquee 32s linear infinite; }
.hero-marquee span{ font-size:11px; letter-spacing:.28em; color:var(--muted-2); white-space:nowrap; display:flex; align-items:center; gap:34px; }
.hero-marquee span::after{ content:"·"; color:var(--blue-2); }
@keyframes marquee{ to{ transform:translateX(-50%); } }

/* ---------- section head ---------- */
.split-head{ display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(30px,5vw,70px); align-items:end; }
.section-lead{ color:var(--muted); font-size:clamp(14.5px,1.3vw,16px); line-height:1.8; max-width:44ch; padding-bottom:6px; }

/* ---------- bento ---------- */
.bento{ display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
.bento-card{ grid-column:span 5; padding:28px; border-radius:24px; display:flex; flex-direction:column; gap:14px; position:relative; overflow:hidden; transition:border-color .4s, transform .4s var(--ease), background .4s; }
.bento-card:hover{ border-color:var(--line-2); transform:translateY(-4px); background:rgba(13,28,50,.66); }
.bento-wide{ grid-column:span 7; }
.about-bento .bento-card:nth-child(1){ grid-column:span 7; }
.about-bento .bento-card:nth-child(2){ grid-column:span 5; }
.about-bento .bento-card:nth-child(3){ grid-column:span 5; }
.about-bento .bento-card:nth-child(4){ grid-column:span 7; }
.skills-bento .bento-card:nth-child(1){ grid-column:span 7; }
.skills-bento .bento-card:nth-child(2){ grid-column:span 5; }
.skills-bento .bento-card:nth-child(3){ grid-column:span 5; }
.skills-bento .bento-card:nth-child(4){ grid-column:span 7; }

.bento-head{ display:flex; align-items:center; gap:12px; }
.bento-num{ font-size:10.5px; letter-spacing:.18em; color:var(--sky); }
.bento-card h3{ font-size:17px; letter-spacing:-.02em; }
.bento-card p{ font-size:13.5px; color:var(--muted); line-height:1.75; }

/* terminal */
.terminal{ margin-top:auto; border-radius:12px; overflow:hidden; border:1px solid rgba(143,194,255,.16); background:#06101f; }
.terminal-bar{ display:flex; align-items:center; gap:5px; padding:8px 11px; background:rgba(143,194,255,.05); border-bottom:1px solid rgba(143,194,255,.09); }
.terminal-bar i{ width:6px; height:6px; border-radius:50%; background:rgba(143,194,255,.25); }
.terminal-bar i:first-child{ background:#ff6b6b; }
.terminal-bar i:nth-child(2){ background:#ffd166; }
.terminal-bar i:nth-child(3){ background:#6EE7B7; }
.terminal-bar span{ margin-left:6px; font-size:9.5px; color:var(--muted-2); font-family:var(--font-mono); }
.terminal pre{ padding:12px 14px; font-size:11px; line-height:1.75; color:#cfe0f7; }
.t-muted{ color:#5F7A9E; } .t-str{ color:#A7F3D0; } .t-ok{ color:#6EE7B7; }
.t-cursor{ color:var(--sky); animation:blink 1.1s steps(1) infinite; }
@keyframes blink{ 50%{ opacity:0; } }

/* mini visuals */
.mini-bars{ display:flex; align-items:flex-end; gap:6px; height:78px; margin-top:auto; }
.mini-bars span{ flex:1; height:var(--h); border-radius:3px 3px 1px 1px; background:linear-gradient(var(--sky), rgba(46,107,184,.18)); opacity:.8; }

.sparkline{ margin-top:auto; height:64px; }
.sparkline svg{ width:100%; height:100%; overflow:visible; }
.sparkline path{ fill:none; stroke:var(--sky); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 0 8px rgba(143,194,255,.5)); }

.big-stat{ margin-top:auto; font-family:var(--font-head); font-size:clamp(2.6rem,4vw,3.6rem); letter-spacing:-.05em; line-height:1; background:linear-gradient(120deg, var(--ice), var(--sky) 50%, var(--blue-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.big-stat span{ display:block; font-family:var(--font-body); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted-2); -webkit-text-fill-color:var(--muted-2); margin-top:8px; }

/* ---------- experience ---------- */
.exp-grid{ display:grid; grid-template-columns:.72fr 1.28fr; gap:clamp(40px,6vw,90px); align-items:start; }
.exp-aside{ position:sticky; top:120px; }
.exp-aside p{ color:var(--muted); font-size:14.5px; line-height:1.8; max-width:36ch; margin-top:18px; }
.exp-big{ margin-top:34px; }
.exp-big strong{ display:block; font-family:var(--font-head); font-size:clamp(4rem,8vw,7rem); line-height:.9; letter-spacing:-.06em; background:linear-gradient(120deg, var(--ice), var(--sky) 45%, var(--blue-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.exp-big sup{ font-size:.35em; }
.exp-big span{ display:block; font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-2); margin-top:10px; }

.timeline{ position:relative; padding-left:4px; }
.timeline-line{ position:absolute; top:8px; bottom:8px; left:9px; width:1px; background:var(--line); }
.timeline-progress{ display:block; width:100%; height:100%; background:linear-gradient(var(--sky), var(--blue-2)); transform:scaleY(0); transform-origin:top; }

.timeline-item{ position:relative; padding:0 0 48px 50px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{ position:absolute; left:3px; top:7px; width:13px; height:13px; border-radius:50%; background:var(--bg); border:1px solid var(--sky); box-shadow:0 0 0 4px rgba(143,194,255,.08), 0 0 18px rgba(143,194,255,.35); }
.timeline-meta{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; margin-bottom:9px; }
.period{ font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--sky); }
.place{ font-size:10.5px; color:var(--muted-2); }
.timeline-item h3{ font-size:clamp(1.25rem,2vw,1.55rem); margin-bottom:3px; }
.company{ color:var(--muted); font-size:13.5px; margin-bottom:14px; }
.timeline-item ul{ display:grid; gap:8px; margin-bottom:16px; }
.timeline-item li{ position:relative; padding-left:17px; color:var(--muted); font-size:14px; line-height:1.7; }
.timeline-item li::before{ content:""; position:absolute; left:0; top:.7em; width:5px; height:5px; border-radius:50%; background:var(--blue-2); }
.timeline-item li strong{ color:var(--text); font-weight:500; }

.tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tags span{ font-size:10.5px; letter-spacing:.04em; color:var(--muted); padding:5px 11px; border:1px solid var(--line); border-radius:999px; background:rgba(143,194,255,.03); }

/* ---------- work ---------- */
.work-section{ padding-bottom:clamp(60px,8vh,100px); }
.work-stack{ display:flex; flex-direction:column; gap:28px; }

.project-card{
  position:sticky;
  top:104px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  min-height:560px;
  border-radius:28px;
  overflow:hidden;
  background:linear-gradient(160deg, rgba(11,27,51,.92), rgba(5,11,20,.97));
  border:1px solid var(--line);
  box-shadow:0 40px 100px -40px rgba(0,0,0,.9);
}
.project-card:nth-child(even){ grid-template-columns:.95fr 1.05fr; }
.project-card:nth-child(even) .project-visual{ order:2; }

.project-visual{ position:relative; display:grid; place-items:center; padding:40px; overflow:hidden; background:radial-gradient(600px 400px at 30% 10%, rgba(143,194,255,.16), transparent 60%), linear-gradient(150deg, #0A1A2F, #071120 70%); }
.project-visual::before{ content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(143,194,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(143,194,255,.05) 1px, transparent 1px); background-size:44px 44px; opacity:.5; }
.visual-glow{ position:absolute; width:320px; height:320px; border-radius:50%; background:radial-gradient(circle, rgba(143,194,255,.28), transparent 65%); filter:blur(30px); top:10%; right:5%; pointer-events:none; }

.mock{ position:relative; width:min(440px, 100%); border-radius:16px; overflow:hidden; border:1px solid rgba(143,194,255,.2); background:#081426; box-shadow:0 40px 80px -30px rgba(0,0,0,.9); }
.mock-bar{ display:flex; align-items:center; gap:6px; padding:10px 12px; background:rgba(143,194,255,.05); border-bottom:1px solid rgba(143,194,255,.1); }
.mock-bar i{ width:7px; height:7px; border-radius:50%; background:rgba(143,194,255,.28); }
.mock-bar span{ margin-left:8px; font-size:10px; color:var(--muted-2); letter-spacing:.06em; }
.mock-body{ display:flex; min-height:210px; }
.mock-side{ width:58px; padding:14px 10px; border-right:1px solid rgba(143,194,255,.08); display:flex; flex-direction:column; gap:9px; }
.mock-side span{ height:7px; border-radius:3px; background:rgba(143,194,255,.12); }
.mock-side span:first-child{ background:rgba(143,194,255,.4); }
.mock-main{ flex:1; padding:16px; }
.mock-hero{ height:58px; border-radius:8px; background:linear-gradient(120deg, rgba(143,194,255,.28), rgba(30,78,140,.3)); margin-bottom:12px; }
.mock-row{ display:flex; gap:8px; }
.mock-row div{ flex:1; height:58px; border-radius:8px; background:rgba(143,194,255,.08); border:1px solid rgba(143,194,255,.08); }
.mock-list{ display:grid; gap:6px; margin-top:12px; }
.mock-list i{ display:block; height:6px; border-radius:3px; background:rgba(143,194,255,.1); }
.mock-list i:nth-child(2){ width:70%; }

.mock-body.store{ display:block; padding:14px; }
.store-cover{ height:62px; border-radius:8px; background:linear-gradient(120deg, rgba(110,231,183,.22), rgba(143,194,255,.18)); margin-bottom:12px; }
.store-products{ display:flex; gap:8px; }
.store-products span{ flex:1; height:64px; border-radius:8px; background:rgba(143,194,255,.08); border:1px solid rgba(143,194,255,.08); }
.store-bubble{ margin-top:12px; display:inline-block; font-size:10px; color:#052012; background:linear-gradient(120deg,#6EE7B7,#A7F3D0); padding:7px 12px; border-radius:999px 999px 999px 4px; box-shadow:0 10px 30px -10px rgba(110,231,183,.6); }
.store-invoice{ margin-top:8px; margin-left:8px; display:inline-block; font-size:9px; color:var(--muted); padding:5px 10px; border-radius:999px; border:1px solid var(--line); }

.visual-trading{ display:flex; flex-direction:column; gap:24px; }
.chart{ display:flex; align-items:flex-end; gap:7px; height:170px; width:100%; max-width:480px; }
.chart span{ flex:1; height:var(--h); border-radius:3px 3px 1px 1px; background:linear-gradient(var(--sky), rgba(46,107,184,.25)); opacity:.85; animation:barPulse 3s ease-in-out infinite; }
.chart span:nth-child(3n){ background:linear-gradient(#6EE7B7, rgba(110,231,183,.15)); }
.chart span:nth-child(2n){ animation-delay:-1.2s; }
.chart span:nth-child(3n){ animation-delay:-2.1s; }
@keyframes barPulse{ 50%{ transform:scaleY(.88); opacity:.6; } }
.bot-panel{ display:flex; align-items:center; gap:12px; padding:12px 18px; border-radius:14px; border:1px solid rgba(143,194,255,.18); background:rgba(5,11,20,.6); font-size:12px; width:100%; max-width:420px; }
.bot-dot{ width:8px; height:8px; border-radius:50%; background:#6EE7B7; box-shadow:0 0 12px #6EE7B7; }
.bot-panel strong{ display:block; font-size:11px; letter-spacing:.08em; }
.bot-panel small{ display:block; color:var(--muted-2); font-size:10px; }
.bot-panel em{ margin-left:auto; font-style:normal; color:#6EE7B7; font-size:13px; }

.project-info{ padding:clamp(30px,4vw,52px); display:flex; flex-direction:column; justify-content:center; }
.project-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.project-num{ font-size:10.5px; letter-spacing:.2em; color:var(--sky); }
.project-badge{ font-size:10px; letter-spacing:.08em; text-transform:uppercase; padding:5px 10px; border-radius:999px; border:1px solid var(--line); color:var(--muted); }
.project-badge.live{ color:#6EE7B7; border-color:rgba(110,231,183,.3); background:rgba(110,231,183,.06); }
.project-badge.private{ color:#FDE68A; border-color:rgba(253,230,138,.25); background:rgba(253,230,138,.05); }
.project-info h3{ font-size:clamp(1.7rem,2.8vw,2.4rem); margin-bottom:10px; }
.project-info p{ color:var(--muted); font-size:14.5px; line-height:1.75; margin-bottom:16px; max-width:52ch; }
.project-points{ display:grid; gap:7px; margin-bottom:18px; }
.project-points li{ position:relative; padding-left:18px; font-size:13px; color:var(--muted); }
.project-points li::before{ content:"✓"; position:absolute; left:0; color:var(--sky); font-size:11px; }
.project-link{ display:inline-flex; align-items:center; gap:8px; margin-top:6px; font-size:12.5px; color:var(--sky); border-bottom:1px solid rgba(143,194,255,.3); padding-bottom:2px; width:fit-content; transition:gap .3s, border-color .3s; }
.project-link:hover{ gap:12px; border-color:var(--sky); }
.project-link.muted{ color:var(--muted-2); border-color:transparent; }

/* ---------- skills ---------- */
.skills-bento .bento-card{ min-height:170px; }
.skill-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:auto; }
.skill-chips span{ font-size:11.5px; color:var(--muted); padding:7px 12px; border:1px solid var(--line); border-radius:999px; background:rgba(143,194,255,.03); transition:color .25s, border-color .25s, background .25s; }
.skill-chips span:hover{ color:var(--text); border-color:var(--line-2); background:rgba(143,194,255,.08); }

.marquee{ overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0; margin-top:56px; mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track{ display:flex; gap:44px; width:max-content; animation:marquee 38s linear infinite; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-track span{ font-family:var(--font-head); font-size:clamp(1.1rem,2vw,1.6rem); font-weight:400; color:var(--muted-2); white-space:nowrap; display:flex; align-items:center; gap:44px; }
.marquee-track span::after{ content:"✦"; color:var(--blue-2); font-size:.7em; }

/* ---------- education ---------- */
.edu-card{ display:grid; grid-template-columns:auto 1fr auto; gap:clamp(24px,5vw,64px); align-items:center; padding:clamp(28px,4.5vw,50px); background:radial-gradient(600px 300px at 100% 0%, rgba(143,194,255,.12), transparent 60%), var(--glass); }
.edu-year{ font-family:var(--font-head); font-size:clamp(4rem,9vw,7rem); line-height:.85; letter-spacing:-.06em; background:linear-gradient(120deg, var(--ice), var(--sky) 45%, var(--blue-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.edu-main h2{ font-size:clamp(1.8rem,3.4vw,2.8rem); margin-bottom:8px; }
.edu-main p{ color:var(--text); font-size:14.5px; }
.edu-note{ color:var(--muted) !important; font-size:13px !important; margin-top:4px; }
.edu-badge{ font-size:11px; padding:6px 12px; border-radius:999px; border:1px solid rgba(110,231,183,.3); color:#6EE7B7; background:rgba(110,231,183,.06); white-space:nowrap; }

/* ---------- contact ---------- */
.contact{ position:relative; overflow:hidden; text-align:center; padding:clamp(110px,16vh,200px) 0; }
.contact-marquee{ position:absolute; top:50%; left:0; right:0; transform:translateY(-50%); opacity:.045; pointer-events:none; overflow:hidden; }
.contact-marquee .marquee-track{ display:flex; gap:60px; width:max-content; animation:marquee 30s linear infinite; }
.contact-marquee span{ font-family:var(--font-head); font-size:clamp(3rem,9vw,8rem); font-weight:700; letter-spacing:-.04em; white-space:nowrap; color:var(--ice); }
.contact-inner{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }
.contact .section-label{ justify-content:center; }
.contact h2{ max-width:18ch; margin-bottom:20px; }
.contact p{ color:var(--muted); max-width:52ch; margin-bottom:34px; }
.contact-email{ font-family:var(--font-head); font-size:clamp(1.5rem,4vw,2.8rem); letter-spacing:-.03em; background:linear-gradient(100deg, var(--ice), var(--sky) 55%, var(--blue-2)); -webkit-background-clip:text; background-clip:text; color:transparent; border-bottom:1px solid rgba(143,194,255,.3); padding-bottom:6px; display:inline-flex; align-items:center; gap:12px; transition:gap .3s, border-color .3s; }
.contact-email span{ font-size:.5em; -webkit-text-fill-color:var(--sky); }
.contact-email:hover{ gap:20px; border-color:var(--sky); }
.contact-links{ margin-top:30px; display:flex; flex-wrap:wrap; gap:20px; justify-content:center; align-items:center; font-size:12px; color:var(--muted-2); letter-spacing:.06em; }
.contact-links a{ color:var(--muted); border-bottom:1px solid transparent; transition:color .25s, border-color .25s; }
.contact-links a:hover{ color:var(--sky); border-color:var(--sky); }

/* ---------- footer ---------- */
.footer{ border-top:1px solid var(--line); padding:28px 0; }
.footer-inner{ display:flex; align-items:center; gap:20px; justify-content:space-between; }
.footer .brand{ font-size:15px; }
.footer .brand img{ width:32px; height:32px; }
.footer p{ font-size:12px; color:var(--muted-2); }
.back-top{ font-size:12px; color:var(--muted); transition:color .25s; }
.back-top:hover{ color:var(--sky); }

/* ---------- reveal ---------- */
.js [data-reveal]{ opacity:0; transform:translateY(34px); transition:opacity .9s var(--ease), transform .9s var(--ease); transition-delay:var(--d,0ms); }
.js [data-reveal].in{ opacity:1; transform:none; }

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .hero-inner{ grid-template-columns:1fr; gap:56px; }
  .hero-side{ min-height:480px; order:2; }
  .float-card, .float-chip{ display:none; }
  .hero-copy{ max-width:760px; }
  .hero-title{ font-size:clamp(2.7rem,8vw,5rem); }
  .split-head{ grid-template-columns:1fr; gap:18px; }
  .about-bento .bento-card, .skills-bento .bento-card{ grid-column:span 12; }
  .exp-grid{ grid-template-columns:1fr; gap:50px; }
  .exp-aside{ position:static; }
  .project-card, .project-card:nth-child(even){ grid-template-columns:1fr; position:static; }
  .project-card:nth-child(even) .project-visual{ order:0; }
  .project-visual{ min-height:340px; }
  .edu-card{ grid-template-columns:1fr; gap:22px; }
  .edu-badge{ justify-self:start; }
}

@media (max-width:760px){
  .container{ width:calc(100% - 40px); }
  .nav-links, .nav-cta{ display:none; }
  .menu-btn{ display:flex; margin-left:auto; }
  .hero{ padding-bottom:100px; }
  .hero-side{ min-height:auto; }
  .float-card, .float-chip{ display:none; }
  .profile-wrap{ width:100%; }
  .profile-card{ padding:22px; }
  .profile-stats{ gap:14px 10px; }
  .hero-title{ font-size:clamp(2.6rem,10.5vw,3.8rem); }
  .rotator-line{ min-width:9.6ch; }
  .hero-actions .btn{ flex:1; }
  .work-stack{ gap:18px; }
  .project-info{ padding:26px 22px 30px; }
  .bento-card{ padding:22px; }
  .timeline-item{ padding-left:40px; }
  .timeline-line{ left:6px; }
  .timeline-dot{ left:0; }
  .footer-inner{ flex-direction:column; gap:12px; text-align:center; }
  .contact-links{ flex-direction:column; gap:10px; }
}

@media (max-width:480px){
  .hero-title{ font-size:clamp(2.35rem,11vw,3.2rem); }
  .hero-proof{ font-size:11px; }
  .profile-card h2{ font-size:1.45rem; }
  .profile-stats strong{ font-size:1.15rem; }
  .edu-year{ font-size:4rem; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .js [data-reveal]{ opacity:1; transform:none; }
}
