:root {
  --black: #050505;
  --black-soft: #0d0d0f;
  --ink: #111114;
  --white: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ececf0;
  --muted: #6e6e73;
  --line: rgba(17,17,20,.10);
  --line-dark: rgba(255,255,255,.13);
  --blue: #0071e3;
  --blue-bright: #2997ff;
  --orange: #ff9f0a;
  --green: #30d158;
  --radius-xl: 42px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --max: 1240px;
  --shadow: 0 30px 100px rgba(0,0,0,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; padding: 10px 14px; border-radius: 999px; background: white; color: black; }
.skip-link:focus { top: 12px; }

.nav-inner, .product-nav-inner, .content-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.global-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,5,.82);
  backdrop-filter: saturate(180%) blur(24px);
}
.nav-inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.identity { display: inline-flex; align-items: center; gap: 10px; color: white; font-size: 13px; font-weight: 700; }
.identity-mark { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #111; background: linear-gradient(145deg,#fff,#c9c9cf); font-size: 10px; }
.primary-menu { display: flex; align-items: center; gap: 28px; }
.primary-menu a { color: rgba(255,255,255,.72); font-size: 12px; }
.primary-menu a:hover { color: white; }
.nav-button { padding: 8px 15px; border-radius: 999px; color: white !important; background: var(--blue); }
.admin-nav-link {
  padding: 8px 15px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  color: white !important;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}
.admin-nav-link:hover {
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.15);
}
.menu-toggle { display: none; border: 0; background: transparent; color: white; }
.product-nav {
  position: sticky;
  top: 52px;
  z-index: 90;
  height: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(18,18,20,.88);
  backdrop-filter: blur(24px);
}
.product-nav-inner { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; }
.product-nav-inner > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.product-nav strong { font-size: 19px; letter-spacing: -.03em; }
.product-nav span { color: rgba(255,255,255,.55); font-size: 12px; }
.product-links { display: flex; align-items: center; gap: 24px; }
.product-links a { color: rgba(255,255,255,.72); font-size: 12px; }
.product-cta { padding: 8px 16px; border-radius: 999px; color: white !important; background: var(--blue); }

.hero {
  position: relative;
  min-height: 1480px;
  padding: 132px 20px 84px;
  overflow: clip;
  color: white;
  background: linear-gradient(180deg,#030303 0%,#070709 62%,#0b0b0d 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .24; pointer-events: none; }
.hero-glow-one { width: 520px; height: 520px; left: 7%; top: 360px; background: #0071e3; }
.hero-glow-two { width: 460px; height: 460px; right: 7%; top: 420px; background: #6b39c9; }
.hero-copy { position: relative; z-index: 3; width: min(1080px,100%); margin: 0 auto; text-align: center; }
.overline, .section-label { margin: 0 0 18px; color: var(--orange); font-size: 13px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { max-width: 1120px; margin: 0 auto 24px; font-size: clamp(68px,10vw,150px); line-height: .88; letter-spacing: -.082em; background: linear-gradient(180deg,#fff 8%,#b9bdc5 92%); color: transparent; -webkit-background-clip: text; background-clip: text; }
.hero-tagline { max-width: 940px; margin: 0 auto 20px; font-size: clamp(30px,4vw,58px); line-height: 1.08; letter-spacing: -.055em; font-weight: 720; }
.hero-summary { max-width: 810px; margin: 0 auto; color: rgba(255,255,255,.59); font-size: clamp(18px,2vw,24px); line-height: 1.52; }
.hero-actions, .resume-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform .22s ease, background .22s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #0077ed; }
.button-glass { color: white; border: 1px solid rgba(255,255,255,.17); background: rgba(255,255,255,.08); backdrop-filter: blur(18px); }

.hero-stage { position: relative; z-index: 2; min-height: 740px; width: min(1120px,100%); margin: 94px auto 0; display: grid; place-items: center; perspective: 1700px; }
.orbit { position: absolute; width: 920px; height: 320px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; transform: rotateX(72deg); }
.orbit-two { width: 760px; height: 260px; opacity: .55; }
.skill-device { position: relative; width: min(980px,94vw); min-height: 560px; transform-style: preserve-3d; transform: rotateX(4deg) rotateY(-5deg); transition: transform .22s ease-out; }
.device-screen { position: relative; z-index: 3; min-height: 560px; padding: 26px; border: 1px solid rgba(255,255,255,.22); border-radius: 48px; overflow: hidden; background: linear-gradient(145deg,rgba(65,68,74,.95),rgba(22,23,27,.98)); box-shadow: 0 45px 110px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.13); }
.device-screen::before { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(115deg,rgba(255,255,255,.10),transparent 35%,rgba(255,255,255,.02)); }
.device-edge { position: absolute; border-radius: 44px; background: linear-gradient(145deg,#33363b,#101114); }
.device-edge-right { width: 34px; right: -18px; top: 28px; bottom: 18px; transform: translateZ(-24px); }
.device-edge-bottom { height: 32px; left: 30px; right: -8px; bottom: -16px; transform: translateZ(-24px); }
.device-topline, .device-footer { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.48); font-size: 12px; }
.live-state { display: inline-flex; align-items: center; gap: 8px; }
.live-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(48,209,88,.13); }
.skill-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 14px; margin: 22px 0; }
.skill-tile { min-height: 184px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.045)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.skill-tile[data-category="Expanding"], .skill-tile[data-category="Roadmap"] { background: linear-gradient(145deg,rgba(93,68,170,.24),rgba(255,255,255,.04)); }
.brand-icon { position: relative; width: 68px; height: 68px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(0,0,0,.26); }
.brand-icon img { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); object-fit: contain; z-index: 2; }
.brand-icon .fallback { position: relative; z-index: 1; color: #111; font-size: 14px; font-weight: 800; }
.skill-tile strong { display: block; color: white; font-size: 21px; letter-spacing: -.035em; }
.skill-tile small { display: block; margin-top: 7px; color: rgba(255,255,255,.52); font-size: 12px; line-height: 1.35; }
.skill-status { display: inline-flex; margin-top: 10px; padding: 5px 8px; border-radius: 999px; color: rgba(255,255,255,.74); background: rgba(255,255,255,.08); font-size: 10px; }
.stage-caption { position: absolute; bottom: 10px; color: rgba(255,255,255,.33); font-size: 12px; }

.section { padding: 116px 0; }
.section-light, .project-section, .resume-section, .contact-section { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: .32fr 1.68fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.section-heading h2, .performance-intro h2, .credential-copy h2, .resume-card h2, .contact-panel h2 { margin: 0; font-size: clamp(54px,7vw,104px); line-height: .94; letter-spacing: -.071em; }
.highlight-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.highlight-card { position: relative; min-height: 520px; padding: 28px; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.08); }
.highlight-card::after { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(135deg,rgba(255,255,255,.12),transparent 40%); }
.dark-card { color: white; background: linear-gradient(145deg,#151518,#050505); }
.blue-card { color: white; background: linear-gradient(145deg,#006ee6,#0c2f5a); }
.silver-card { color: #111; background: linear-gradient(145deg,#f8f8fa,#d8dbe2); }
.violet-card { color: white; background: linear-gradient(145deg,#6040cf,#251449); }
.brand-ribbon, .story-logo-row, .metric-logos { position: relative; z-index: 2; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mini-brand { width: 48px; height: 48px; display: grid; place-items: center; position: relative; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(0,0,0,.16); }
.mini-brand img { position:absolute; inset:8px; width:calc(100% - 16px); height:calc(100% - 16px); object-fit:contain; z-index:2; }
.mini-brand span { position:relative; z-index:1; color:#111; font-size:10px; font-weight:800; }
.highlight-number { position: relative; z-index: 2; color: currentColor; opacity: .54; font-size: 13px; font-weight: 700; }
.highlight-card > div:last-child { position: relative; z-index: 2; }
.highlight-kicker { margin: 0 0 12px; color: currentColor; opacity: .6; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.highlight-card h3 { margin: 0 0 18px; font-size: 36px; line-height: 1.01; letter-spacing: -.055em; }
.highlight-card p:last-child { margin: 0; color: currentColor; opacity: .69; line-height: 1.58; }

.design-section { color: white; background: radial-gradient(circle at 80% 12%,rgba(0,113,227,.14),transparent 28%),#080809; }
.design-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.sticky-copy { position: sticky; top: 150px; }
.sticky-copy h2 { margin: 0 0 24px; font-size: clamp(58px,7vw,104px); line-height: .92; letter-spacing: -.07em; }
.sticky-copy > p:last-child { max-width: 520px; color: rgba(255,255,255,.55); font-size: 18px; line-height: 1.62; }
.skill-stories { display: grid; gap: 18px; }
.story-card { min-height: 390px; padding: 34px; border-radius: var(--radius-lg); display: flex; flex-direction: column; border: 1px solid var(--line-dark); background: linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.035)); box-shadow: 0 28px 90px rgba(0,0,0,.18); }
.story-logo-row { min-height: 52px; }
.story-index { margin-top: auto; color: var(--blue-bright); font-size: 13px; font-weight: 750; }
.story-card h3 { margin: 14px 0 14px; font-size: 45px; line-height: 1; letter-spacing: -.057em; }
.story-card p { margin: 0; color: rgba(255,255,255,.55); line-height: 1.65; }

.performance-section { color: white; background: linear-gradient(180deg,#121214,#050505); }
.performance-intro { max-width: 920px; margin-bottom: 50px; }
.performance-intro > p:last-child { max-width: 760px; color: rgba(255,255,255,.55); font-size: 19px; line-height: 1.6; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.metric-card { min-height: 260px; padding: 28px; border-radius: 28px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.035)); }
.metric-card > span { color: rgba(255,255,255,.52); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.metric-card strong { margin-top: auto; font-size: 54px; line-height: 1; letter-spacing: -.06em; }
.metric-card p { margin: 15px 0 0; color: rgba(255,255,255,.52); line-height: 1.5; }
.metric-wide { grid-column: span 2; }
.metric-wide strong { font-size: 46px; }
.metric-logos { margin-bottom: 30px; }

.project-list { display: grid; gap: 22px; }
.project-feature { min-height: 610px; padding: 48px; border-radius: var(--radius-xl); display: grid; grid-template-columns: 1fr .9fr; gap: 54px; align-items: center; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg,#fff,#edf2f8); box-shadow: 0 28px 90px rgba(42,69,99,.10); }
.project-feature:nth-child(even) { background: linear-gradient(145deg,#151518,#070708); color: white; }
.project-feature:nth-child(even) .project-copy, .project-feature:nth-child(even) .project-status { color: rgba(255,255,255,.57); }
.project-kicker { color: var(--orange); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; }
.project-feature h3 { margin: 18px 0 20px; font-size: clamp(46px,5vw,78px); line-height: .94; letter-spacing: -.066em; }
.project-copy { color: var(--muted); font-size: 18px; line-height: 1.66; }
.project-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.project-tag { padding: 8px 11px; border-radius: 999px; color: inherit; background: rgba(127,127,132,.13); font-size: 12px; }
.project-links { display:flex; flex-wrap:wrap; gap:18px; margin-top:30px; }
.project-links a { color: var(--blue); font-weight: 700; }
.project-status { margin-top: 18px; color: var(--muted); font-size: 12px; }
.project-visual { min-height: 430px; padding: 36px; display:flex; align-items:center; justify-content:center; border-radius:32px; background: radial-gradient(circle at 40% 10%,rgba(41,151,255,.28),transparent 35%),linear-gradient(145deg,#09090a,#22252a); box-shadow: 0 38px 100px rgba(0,0,0,.28); }
.project-feature:nth-child(even) .project-visual { background: radial-gradient(circle at 50% 0%,rgba(255,159,10,.22),transparent 35%),linear-gradient(145deg,#f8f8fa,#e0e5ed); }
.project-logo-stack { display:grid; grid-template-columns:repeat(2,120px); gap:14px; }
.project-logo-stack .brand-icon { width:120px; height:120px; border-radius:28px; }
.project-logo-stack .brand-icon img { inset:20px; width:calc(100% - 40px); height:calc(100% - 40px); }

.credential-section { color: white; background: radial-gradient(circle at 15% 18%,rgba(85,80,255,.22),transparent 28%),#080808; }
.credential-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 64px; align-items: center; }
.credential-copy p:not(.section-label) { max-width: 560px; color: rgba(255,255,255,.57); font-size: 19px; line-height: 1.62; }
.badge-stage { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.credential-tile { min-height: 285px; padding: 20px; border-radius: 28px; display:flex; flex-direction:column; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.035)); box-shadow: 0 26px 75px rgba(0,0,0,.24); transition: transform .24s ease, background .24s ease; overflow:hidden; }
.credential-tile:hover { transform: translateY(-6px); background: linear-gradient(145deg,rgba(255,255,255,.15),rgba(255,255,255,.05)); }
.credential-image { height: 180px; display:grid; place-items:center; border-radius:20px; overflow:hidden; background: rgba(255,255,255,.96); }
.credential-image img { width:100%; height:100%; padding:14px; object-fit:contain; }
.credential-fallback-mark { color:#111; font-size:42px; font-weight:850; letter-spacing:-.06em; }
.credential-tile h3 { margin:16px 0 6px; font-size:17px; line-height:1.22; letter-spacing:-.025em; }
.credential-tile p { margin:0; color:rgba(255,255,255,.52); font-size:12px; }
.credential-score { display:inline-flex; align-self:flex-start; margin-top:auto; padding:6px 9px; border-radius:999px; color:#111; background:#fff; font-size:11px; font-weight:750; }

.resume-section { background: white; }
.resume-card { min-height: 650px; padding: 58px; border-radius: var(--radius-xl); display: grid; grid-template-columns: 1fr .72fr; gap: 64px; align-items: center; color: white; background: radial-gradient(circle at 84% 14%,rgba(41,151,255,.24),transparent 28%),#111; overflow: hidden; }
.resume-card > div:first-child > p:not(.section-label) { max-width: 620px; color: rgba(255,255,255,.56); font-size: 19px; line-height: 1.6; }
.resume-actions { justify-content: flex-start; }
.resume-sheet { min-height: 470px; padding: 40px; border-radius: 15px; color: #111; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.42); }
.resume-sheet-head { display:flex; justify-content:space-between; align-items:end; border-bottom:2px solid #111; padding-bottom:16px; }
.resume-sheet-head strong { font-size:27px; letter-spacing:-.04em; }
.resume-sheet-head span { color:#777; font-size:12px; }
.resume-line { width:58%; height:8px; margin-top:18px; border-radius:99px; background:#d7d7da; }
.resume-line.wide { width:100%; margin-top:32px; }
.resume-line.medium { width:78%; }
.resume-section-mock { display:grid; gap:10px; margin-top:42px; }
.resume-section-mock b { font-size:12px; letter-spacing:.12em; }
.resume-section-mock i { height:7px; border-radius:99px; background:#e2e2e5; }

.contact-section { padding-top: 0; background: white; }
.contact-panel { padding: 78px 58px; border-radius: var(--radius-xl); color: white; background: linear-gradient(135deg,#0071e3,#173e72 55%,#101010); box-shadow: 0 34px 100px rgba(0,67,143,.25); }
.contact-panel > p:not(.section-label) { color:rgba(255,255,255,.68); font-size:20px; }
.contact-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:42px; }
.contact-grid a { min-height:140px; padding:24px; border-radius:22px; display:grid; grid-template-columns:1fr auto; align-content:space-between; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.09); backdrop-filter:blur(18px); transition:transform .25s ease,background .25s ease; }
.contact-grid a:hover { transform:translateY(-4px); background:rgba(255,255,255,.15); }
.contact-grid span { grid-column:1/-1; color:rgba(255,255,255,.52); font-size:12px; text-transform:uppercase; letter-spacing:.1em; }
.contact-grid strong { font-size:19px; overflow-wrap:anywhere; }
.contact-grid b { font-size:24px; font-weight:400; }
.site-footer { padding:34px 0 48px; color:#7d7d83; background:white; font-size:12px; }
.footer-inner { display:flex; justify-content:space-between; flex-wrap:wrap; gap:20px; border-top:1px solid var(--line); padding-top:22px; }
.footer-links { display:flex; gap:18px; }
.footer-links a { color:var(--blue); }

.reveal { opacity:0; transform:translateY(22px); transition:opacity .72s ease,transform .72s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity:1; transform:translateY(0); }
.loading-state, .empty-state { min-height:220px; display:grid; place-items:center; color:var(--muted); border:1px dashed var(--line); border-radius:24px; }

/* Credentials library */
.credential-page { background:#080808; }
.credential-hero { position:relative; min-height:680px; padding:170px 0 90px; color:white; overflow:hidden; background:linear-gradient(180deg,#050505,#111 72%,#f5f5f7 100%); }
.credential-hero-glow { position:absolute; width:680px; height:680px; right:-160px; top:70px; border-radius:50%; background:conic-gradient(from 220deg,#0071e3,#7f5cff,#37c9a5,#0071e3); filter:blur(80px); opacity:.24; }
.credential-hero .content-shell { position:relative; z-index:2; }
.credential-hero h1 { margin:0 0 28px; font-size:clamp(74px,11vw,154px); line-height:.86; letter-spacing:-.082em; background:linear-gradient(180deg,#fff,#a7a7ad); color:transparent; -webkit-background-clip:text; background-clip:text; }
.credential-hero p:not(.overline) { max-width:780px; color:rgba(255,255,255,.62); font-size:clamp(18px,2.1vw,24px); line-height:1.58; }
.credential-library { padding:100px 0; background:var(--surface); }
.library-toolbar { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:34px; }
.library-toolbar input { width:min(420px,100%); min-height:46px; padding:0 16px; border:1px solid var(--line); border-radius:999px; background:white; }
.credential-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.library-card { min-height:390px; padding:24px; border-radius:28px; display:flex; flex-direction:column; border:1px solid var(--line); background:white; box-shadow:0 20px 60px rgba(0,0,0,.045); overflow:hidden; }
.library-thumb { height:190px; margin-bottom:22px; display:grid; place-items:center; border-radius:20px; overflow:hidden; background:#f2f2f4; }
.library-thumb img { width:100%; height:100%; padding:12px; object-fit:contain; }
.library-card > span { color:var(--blue); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.11em; }
.library-card h3 { margin:14px 0 10px; font-size:27px; line-height:1.04; letter-spacing:-.046em; }
.library-card p { margin:0 0 18px; color:var(--muted); line-height:1.55; }
.library-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:auto; }
.library-meta b { padding:6px 9px; border-radius:999px; background:#f2f2f4; font-size:11px; }
.library-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:20px; }
.library-actions a { color:var(--blue); font-weight:700; }
.credential-footer { background:var(--surface); }

@media (max-width:1120px) {
  .hero { min-height:1620px; }
  .skill-device { width:min(900px,94vw); }
  .highlight-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .design-grid, .credential-layout, .resume-card, .project-feature { grid-template-columns:1fr; }
  .sticky-copy { position:static; }
  .dashboard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .metric-wide { grid-column:1/-1; }
  .badge-stage { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

@media (max-width:780px) {
  .primary-menu.always-visible { display:flex; position:static; padding:0; background:transparent; box-shadow:none; flex-direction:row; }
  .primary-menu.always-visible a:not(.nav-button):not(.admin-nav-link) { display:none; }
  .identity-name { display:none; }
  .menu-toggle { display:block; }
  .primary-menu { display:none; position:fixed; top:52px; left:12px; right:12px; padding:18px; border-radius:18px; flex-direction:column; align-items:stretch; background:rgba(20,20,20,.98); box-shadow:var(--shadow); }
  .primary-menu.open { display:flex; }
  .primary-menu a { padding:10px; font-size:14px; }
  .product-links a:not(.product-cta) { display:none; }
  .product-nav span { display:none; }
  .hero { min-height:1640px; padding-top:120px; }
  .hero h1 { font-size:clamp(64px,18vw,108px); }
  .hero-tagline { font-size:38px; }
  .hero-stage { min-height:920px; align-items:start; padding-top:20px; }
  .skill-device { width:94vw; min-height:810px; transform:rotateX(2deg) rotateY(-2deg); }
  .device-screen { min-height:810px; border-radius:34px; padding:18px; }
  .skill-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .skill-tile { min-height:164px; padding:15px; border-radius:19px; }
  .brand-icon { width:54px; height:54px; border-radius:16px; }
  .device-edge { display:none; }
  .orbit { transform:rotateX(75deg) scale(.72); }
  .section { padding:84px 0; }
  .section-heading { display:block; }
  .section-heading h2, .performance-intro h2, .credential-copy h2, .resume-card h2, .contact-panel h2 { font-size:52px; }
  .highlight-grid, .dashboard-grid, .contact-grid, .badge-stage, .credential-card-grid { grid-template-columns:1fr; }
  .highlight-card { min-height:430px; }
  .metric-wide { grid-column:auto; }
  .project-feature, .resume-card, .contact-panel { padding:30px; border-radius:28px; }
  .project-visual { min-height:330px; }
  .project-logo-stack { grid-template-columns:repeat(2,96px); }
  .project-logo-stack .brand-icon { width:96px; height:96px; }
  .credential-tile { min-height:320px; }
  .credential-image { height:210px; }
  .resume-sheet { min-height:400px; padding:28px; }
  .library-toolbar { align-items:stretch; flex-direction:column; }
}

@media (max-width:480px) {
  .nav-inner, .product-nav-inner, .content-shell { width:min(100% - 24px,var(--max)); }
  .hero { padding-left:12px; padding-right:12px; }
  .hero-summary { font-size:17px; }
  .skill-tile strong { font-size:16px; }
  .skill-tile small { font-size:10px; }
  .story-card { min-height:330px; padding:26px; }
  .story-card h3 { font-size:36px; }
  .project-feature h3 { font-size:46px; }
  .contact-panel h2 { font-size:48px; }
}

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


/* V5.1 clean skill showcase: logos only, no decorative product labels. */
.skill-grid-logo-only {
  margin: 0;
  min-height: 508px;
  align-items: stretch;
}
.skill-tile-logo-only {
  min-height: 240px;
  padding: 28px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.skill-tile-logo-only .brand-icon {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(0,0,0,.34);
  transition: transform .25s ease, box-shadow .25s ease;
}
.skill-tile-logo-only .brand-icon img {
  inset: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
}
.skill-tile-logo-only:hover .brand-icon {
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 30px 70px rgba(0,0,0,.42);
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 760px) {
  .skill-grid-logo-only { min-height: 760px; }
  .skill-tile-logo-only { min-height: 170px; padding: 20px; }
  .skill-tile-logo-only .brand-icon { width: 88px; height: 88px; border-radius: 22px; }
  .skill-tile-logo-only .brand-icon img { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
}
@media (max-width: 480px) {
  .skill-tile-logo-only { min-height: 145px; }
  .skill-tile-logo-only .brand-icon { width: 74px; height: 74px; border-radius: 19px; }
  .skill-tile-logo-only .brand-icon img { inset: 13px; width: calc(100% - 26px); height: calc(100% - 26px); }
}


/* V5.2 — remove the oversized device frame and use a clean logo ecosystem. */
.hero {
  min-height: 1240px;
  padding-bottom: 70px;
}

.hero-ecosystem {
  --ecosystem-x: 0px;
  --ecosystem-y: 0px;
  position: relative;
  z-index: 2;
  width: min(980px, 94vw);
  height: 590px;
  margin: 86px auto 0;
  transform: translate3d(var(--ecosystem-x), var(--ecosystem-y), 0);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  isolation: isolate;
}

.hero-ecosystem::before,
.hero-ecosystem::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-ecosystem::before { width: 560px; height: 360px; }
.hero-ecosystem::after { width: 790px; height: 500px; opacity: .72; }

.ecosystem-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  filter: blur(72px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.ecosystem-halo-one { width: 420px; height: 300px; background: rgba(0,113,227,.28); }
.ecosystem-halo-two { width: 270px; height: 270px; margin-left: 120px; background: rgba(111,66,193,.18); }

.ecosystem-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.18), rgba(255,255,255,.055) 52%, rgba(255,255,255,.025));
  box-shadow: 0 30px 90px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(24px);
  transform: translate(-50%, -50%);
}
.ecosystem-core-ring {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(0,113,227,.34);
  border-radius: 50%;
  box-shadow: 0 0 48px rgba(0,113,227,.18);
}
.ecosystem-core-logo,
.ecosystem-logo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 46px rgba(0,0,0,.28);
}
.ecosystem-core-logo { width: 112px; height: 112px; border-radius: 32px; }
.ecosystem-logo { width: 86px; height: 86px; border-radius: 24px; }
.ecosystem-core-logo img,
.ecosystem-logo img {
  position: absolute;
  inset: 17%;
  width: 66%;
  height: 66%;
  object-fit: contain;
  z-index: 2;
}
.ecosystem-core-logo .fallback,
.ecosystem-logo .fallback { color: #111; font-size: 12px; font-weight: 800; }

.ecosystem-satellite {
  position: absolute;
  z-index: 3;
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
  box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.ecosystem-satellite:hover {
  z-index: 6;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055));
  transform: translateY(-7px) scale(1.04);
}
.ecosystem-satellite-1 { left: 11%; top: 8%; }
.ecosystem-satellite-2 { left: 39%; top: 1%; }
.ecosystem-satellite-3 { right: 10%; top: 11%; }
.ecosystem-satellite-4 { left: 2%; top: 43%; }
.ecosystem-satellite-5 { right: 1%; top: 45%; }
.ecosystem-satellite-6 { left: 19%; bottom: 2%; }
.ecosystem-satellite-7 { right: 20%; bottom: 1%; }

@media (max-width: 900px) {
  .hero { min-height: 1370px; }
  .hero-ecosystem { height: 660px; width: min(720px, 96vw); }
  .hero-ecosystem::before { width: 430px; height: 430px; }
  .hero-ecosystem::after { width: 650px; height: 590px; }
  .ecosystem-satellite-1 { left: 8%; top: 8%; }
  .ecosystem-satellite-2 { left: 42%; top: 0; }
  .ecosystem-satellite-3 { right: 7%; top: 9%; }
  .ecosystem-satellite-4 { left: 0; top: 42%; }
  .ecosystem-satellite-5 { right: 0; top: 43%; }
  .ecosystem-satellite-6 { left: 13%; bottom: 3%; }
  .ecosystem-satellite-7 { right: 13%; bottom: 3%; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: 72px; }
  .hero-ecosystem {
    width: 100%;
    height: auto;
    margin-top: 66px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    transform: none !important;
  }
  .hero-ecosystem::before,
  .hero-ecosystem::after,
  .ecosystem-halo { display: none; }
  .ecosystem-core,
  .ecosystem-satellite {
    position: relative;
    inset: auto;
    width: 100%;
    height: 108px;
    border-radius: 26px;
    transform: none;
  }
  .ecosystem-core { grid-column: span 2; }
  .ecosystem-satellites { display: contents; }
  .ecosystem-core-ring { display: none; }
  .ecosystem-core-logo,
  .ecosystem-logo { width: 66px; height: 66px; border-radius: 18px; }
}

@media (max-width: 430px) {
  .hero-ecosystem { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ecosystem-core { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ecosystem,
  .ecosystem-satellite { transition: none; }
}


/* Portfolio V5.3 refinements */
.ecosystem-core {
  opacity: 0;
  animation: ecosystemCoreEnter .9s cubic-bezier(.2,.85,.25,1) .2s forwards;
}
.ecosystem-satellite {
  opacity: 0;
  animation: ecosystemSatelliteEnter .78s cubic-bezier(.2,.85,.25,1) forwards;
}
.ecosystem-satellite-1 { animation-delay: .38s; }
.ecosystem-satellite-2 { animation-delay: .48s; }
.ecosystem-satellite-3 { animation-delay: .58s; }
.ecosystem-satellite-4 { animation-delay: .68s; }
.ecosystem-satellite-5 { animation-delay: .78s; }
.ecosystem-satellite-6 { animation-delay: .88s; }
.ecosystem-satellite-7 { animation-delay: .98s; }

@keyframes ecosystemCoreEnter {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.68) rotate(-8deg); filter: blur(12px); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); filter: blur(0); }
}

@keyframes ecosystemSatelliteEnter {
  from { opacity: 0; transform: translateY(48px) scale(.65) rotate(10deg); filter: blur(12px); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0); }
}

.project-cover-image {
  width: min(100%, 620px);
  max-height: 420px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 28px 90px rgba(0,0,0,.38);
}

@media (max-width: 640px) {
  .ecosystem-core,
  .ecosystem-satellite {
    animation-name: ecosystemMobileEnter;
  }

  @keyframes ecosystemMobileEnter {
    from { opacity: 0; transform: translateY(24px) scale(.82); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-core,
  .ecosystem-satellite {
    opacity: 1;
    animation: none !important;
    filter: none !important;
  }
}
